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
18.08.2023 06:54
Reason for closing: Won't implement
Additional comments about closing:
AppID has to be "QCAD" for
DXF/DWG.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
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.