QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To
    andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.28.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
    • CVH (18.08.2023)
  • Private
Attached to Project: QCAD Bugtracker
Opened by CVH - 18.08.2023
Last edited by andrew - 18.08.2023

FS#2488 - Not saved/loaded custom properties when the title is not 'QCAD' and unlisted in Property Editor.

Andrew,

Discovered in writing a custom tool:
hatchEntity.setCustomProperty(”MijnEPB”, “Ruimte”, roomData.numberText);
Works perfectly and I can retrieve the room numbers of all semi-automatically placed hatches in this instance of QCAD.

But I can not store and reload this file with these custom properties to use them in a new QCAD session.
I then assume the title must be ‘QCAD’.
Then I wonder how QCAD handles custom properties by other CAD applications.
Are they also removed on loading/writing?

QCAD doesn’t list these custom properties in the Property Editor.
Here hidden was fine unless they are not stored with the document.

Is it even possible to store them in the drawing file?
Why is the title a required variable when it can’t differ from ‘QCAD’?
Would it be possible to list them up in the Property Editor because I know they are filtered on title ‘QCAD’.

For now I revert to:
hatchEntity.setCustomProperty(”QCAD”, “EPB-Ruimte”, roomData.numberText);
Similar as the CAM tool that uses ‘Cam....’ for all keys.

Regards,
CVH

Closed by  andrew
18.08.2023 06:54
Reason for closing:  Won't implement
Additional comments about closing:  

AppID has to be "QCAD" for DXF/DWG.

Admin

QCAD stores properties always as string type in the format "key:value" while other applications store properties as different types with DXF style number keys.

When loading a file, QCAD needs to know for sure if a property is stored in QCAD "key:value" format or in another format. That's the reason why the app needs to be "QCAD" when a document is saved to DXF/DWG.

The AppID can have other uses for other formats / applications in other plugins.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing