Problems when uploading an object after setting its Draw Order to 'Send to Back'.

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
swchoi
Newbie Member
Posts: 8
Joined: Mon Feb 17, 2025 3:47 am

Problems when uploading an object after setting its Draw Order to 'Send to Back'.

Post by swchoi » Wed Feb 19, 2025 9:05 am

Hi,

When uploading an object after setting its Draw Order to Send to Back, there are times when the 'Send to Back' function is not applied and the object is converted to 'Bring to Front'.

Objects that need to be expressed as background colors, such as the background color of Attdef (Attribute Definition) or Hatch, should go behind, but sometimes appear in front of other objects. As the cause cannot be determined, it is currently assumed to be random.

This is a similar function to sending objects, shapes, images, etc. backwards and forwards in Excel, PPT, etc.

CVH
Premier Member
Posts: 4995
Joined: Wed Sep 27, 2017 4:17 pm

Re: Problems when uploading an object after setting its Draw Order to 'Send to Back'.

Post by CVH » Wed Feb 19, 2025 4:54 pm

Hi,

'uploaded' or simply 'opened with QCAD'?
One can not save or load a single drawing object, we open/import a drawing file or insert a drawing file as block.

Drawing order is per entity and is assigned on creation: One higher than the highest order that already exists.
The higher the drawing order, the more in front.
With equal drawing orders, QCAD falls back on the handle order. (Educated guess)
The handle of an entity is unique and also assigned on creation.

A background for Text, Attributes, Block Attributes or Attribute Definitions is not supported.
A Hatch is nothing more than an entity and also receives its drawing order on creation.
Typically created later and thus in front of what already existed.

In QCAD 'Send to Back' (MB) does nothing more than assigning a new drawing order one lower than the lowest order that already exists.
This can lead to a negative value. (Temporarily)
'Bring to Front' (MF) does nothing more than assigning a new drawing order one higher than the highest order that already exists.

Both methods only affect the drawing order of the selected entities.
All selected receive the same new order. (Temporarily)
It is perfectly possible that gaps occur in the drawing order sequence. (Temporarily)
QCAD does not use these gaps for assigning new drawing orders.

So it's not 'at random' but rather very well defined and very predictable.
What goes behind what is perfectly controllable.
But never as 'should go behind', that is a personal opinion.

On save/reload with QCAD the drawing orders are re-assigned starting from zero and sequentially upwards.
Negative values or gaps are removed and equal drawing orders are handled as per above.
Unaware if this happens on save or on load.
QCAD Pro relies on OpenDesign libraries for reading/writing DXF/DWG files.

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”