Hi,
Would you please tell me how to get the reference to the active (open) QCAD document?
Thank you
Michał
ECMAScript reference to the current QCAD document
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.
-
- Newbie Member
- Posts: 7
- Joined: Sun Nov 29, 2020 6:32 pm
- Location: Poland
-
- Premier Member
- Posts: 4919
- Joined: Wed Sep 27, 2017 4:17 pm
Re: ECMAScript reference to the current QCAD document
Hi,
Depends on where it is required.
When eventually based on EAction then it can be as simple as this.getDocument();
Then basically the same as EAction.getDocument();
With a known RDocumentInterface in di again very simple: di.getDocument();
There are countless methods.
Try to enter the search term 'getDocument' in the QCAD reference
Regards,
CVH
Depends on where it is required.
When eventually based on EAction then it can be as simple as this.getDocument();
Then basically the same as EAction.getDocument();
With a known RDocumentInterface in di again very simple: di.getDocument();
There are countless methods.
Try to enter the search term 'getDocument' in the QCAD reference
Regards,
CVH
-
- Newbie Member
- Posts: 7
- Joined: Sun Nov 29, 2020 6:32 pm
- Location: Poland
Re: ECMAScript reference to the current QCAD document
Hi,
Thank you for your hints.
Michał
Thank you for your hints.
Michał