The above and probably the missing lines in the export are related to hidden layers.
The content of Block 'A$C0F44124B' are 94 entities on layer 'PUB_TITLE' itself not hidden.
The Block Reference entity '0x16db' lives on layer 'PUB_DIM' what is hidden.
Still, the Block Reference is visible in Model_View and in Print Preview mode.
Also highlighted when pointing near it but
NOT selectable with the cursor by clicking or with a box selection, selectable by
TA.
I was convinced that the Block entity layers AND the Block Reference layer had to visible so that content was visible ...
If we (re)read all topics filtered on a combination of 'Visible'/'Visibility' and 'Block'/'Blocks' we might get conflicting information.
In the
QCAD FAQ (8 aug 2018) is stated that:
- Turning off the layer of the Block Reference will make the whole block reference invisible.
Conflicting with a
reply by Andrew (30 nov 2017):
- If a layer is off, block references are still shown but these are not shown when the layer is frozen.
The first is confirmed in this earlier
reply by Andrew (8 mar 2016):
- If an entity is part of a block, the entity also becomes invisible if the layer the block reference is on is hidden.
The second is then confirmed in this
reply by Andrew (11 jan 2022):
- When turning off the block content layer, the block reference on another layer is not hidden.
The context and several preferences may have an influence:
- Different for Layer 0 in best compatibility mode
- Including the frozen column or not and for the latter case not opting for Off = Frozen
Exporting to PDF using the GUI worked out.
Attempted a life test exporting your DWG to PDF with the command line instruction.
Using a trial of QCAD 3.32.3 was not an option:
FS#2684
Reverted to QCAD3.32.1 and I don't see any difference with the GUI export.
The Block in question is rendered fine in PDF although Andrew says otherwise.
andrew wrote: ↑Thu Jul 17, 2025 10:02 am
I can confirm that the reference to this anonymous block is not loaded for unknown reasons.
For completeness the debug output:
Code: Select all
E:\CNC\QCAD\QCAD_32.1>dwg2pdf -platform offscreen -auto-fit -auto-orientation -color-correction -center -min-lineweight=0.1 -max-lineweight=0.1 -flat -f -o hik-IT-test.pdf hik-IT-test.dwg
QCAD version 3.32.1
11:50:34: Debug: loading plugins...
11:50:34: Debug: RPolygonPlugin::init
11:50:34: Debug: RProScriptsPlugin::init: trial
You are using a trial version of QCAD Professional.
If you would like to use this software productively,
please purchase the full version for a small license fee from our
Online Shop at:
https://qcad.org/shop
Thank you for trying this add-on!
Your script will start in 15 seconds...
11:50:49: Debug: RProxiesPlugin::init: trial
11:50:50: Debug: RTracePlugin::init: trial
11:50:50: Debug: RDwgPlugin::init: trial
11:50:50: Debug: loading static plugins...
11:50:50: Debug: addObject: block: "*Model_Space"
11:50:50: Debug: addObject: block: "*Paper_Space"
11:50:50: Debug: addObject: block: "*Model_Space"
11:50:50: Debug: addObject: block: "*Paper_Space"
Warning: cannot assign original handle to object "0x7"
Warning: collision with object of type: 4
Warning: new handle "0x194e"
Warning: cannot assign original handle to object "0x27"
Warning: collision with object of type: 2
Warning: new handle "0x194f"
Warning: cannot assign original handle to object "0x13"
Warning: collision with object of type: 2
Warning: new handle "0x1950"
Warning: cannot assign original handle to object "0x2"
Warning: collision with object of type: 2
Warning: new handle "0x1951"
11:50:50: Debug: addObject: block: "*MODEL_SPACE"
11:50:50: Debug: addObject: block: "*PAPER_SPACE"
Warning: cannot assign original handle to object "0x2c"
Warning: collision with object of type: 2
Warning: new handle "0x1952"
11:50:50: Debug: addObject: block: "_OBLIQUE"
11:50:50: Debug: addObject: block: "K2241"
11:50:50: Debug: addObject: block: "831000"
11:50:50: Debug: addObject: block: "953001"
11:50:50: Debug: addObject: block: "941001"
11:50:50: Debug: addObject: block: "931001"
11:50:50: Debug: addObject: block: "671000"
11:50:50: Debug: addObject: block: "914001"
11:50:50: Debug: addObject: block: "K8410"
11:50:50: Debug: addObject: block: "513100"
11:50:50: Debug: addObject: block: "359000"
11:50:50: Debug: addObject: block: "A$C66F272B3"
11:50:50: Debug: addObject: block: "A$C7D633E49"
11:50:50: Debug: addObject: block: "A$C55815D12"
Warning: cannot assign original handle to object "0x1c"
Warning: collision with object of type: 2
Warning: new handle "0x1953"
11:50:50: Debug: addObject: block: "_ArchTick"
11:50:50: Debug: addObject: block: "HY08HQ"
11:50:50: Debug: addObject: block: "HY2007Logo"
11:50:50: Debug: addObject: block: "A$C5C5B78CA"
11:50:50: Debug: addObject: block: "A$C0375763B"
11:50:50: Debug: addObject: block: "A$C103A2850"
11:50:50: Debug: addObject: block: "A$C79621BF0"
11:50:50: Debug: addObject: block: "A$C239A1539"
11:50:50: Debug: addObject: block: "A$C0AD5331F"
11:50:50: Debug: addObject: block: "A$C5C680018"
11:50:50: Debug: addObject: block: "A$C4431507C"
11:50:50: Debug: addObject: block: "??k"
11:50:50: Debug: addObject: block: "A$C62004A63"
11:50:50: Debug: addObject: block: "A$C0F44124B"
11:50:50: Debug: addObject: block: "_AXISO"
Warning: cannot assign original handle to object "0x2e"
Warning: collision with object of type: 2
Warning: new handle "0x1954"
Warning: cannot assign original handle to object "0x20"
Warning: collision with object of type: 2
Warning: new handle "0x1a4d"
Warning: cannot assign original handle to object "0x12"
Warning: collision with object of type: 2
Warning: new handle "0x20c8"
Warning: cannot assign original handle to object "0x30"
Warning: collision with object of type: 2
Warning: new handle "0x20c9"
Warning: QFontDatabase: Cannot find font directory C:/Qt/Qt5.13.2/5.13.2/msvc2017/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from https://dejavu-fonts.github.io/ for example) or switch to fontconfig.
11:50:51: Debug: entity on block 118 [ "HY2007Logo" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 108 [ "671000" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 114 [ "A$C7D633E49" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 118 [ "HY2007Logo" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 126 [ "A$C4431507C" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 126 [ "A$C4431507C" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 104 [ "831000" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 128 [ "A$C62004A63" ] (not on current block 5 [ "*MODEL_SPACE" ])
11:50:51: Debug: entity on block 129 [ "A$C0F44124B" ] (not on current block 5 [ "*MODEL_SPACE" ])
Converting
from: E:/CNC/QCAD/QCAD_32.1\hik-IT-test.dwg
to : E:/CNC/QCAD/QCAD_32.1\hik-IT-test.pdf
Warning: RGraphicsViewImage::paintOverlay: no workers
E:\CNC\QCAD\QCAD_32.1>
Not all went well I presume but that is drawing file related.
Regards,
CVH