Hello,
i am newbie in qcad scripting. Reading some examnples i formed an idea of how does the scripts work.
I would like to access all selected items (array or list) in the current draw and i can not find an object or method to query selected items. Any help?, please
Thank you very much
Access all selected objects from script
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: Access all selected objects from script
var document = this.getDocument(); var ids = document.querySelectedEntities();For a complete example, please refer to scripts/Modify/Reverse/Reverse.js or other modification tools that work on a selection.
Re: Access all selected objects from script
Thank you very much and best regards Andrew.