Search found 5 matches

by Nick1974
Wed Oct 11, 2017 2:05 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: [solved] reopen the dxf file after it has been modified externally
Replies: 2
Views: 6521

[solved] reopen the dxf file after it has been modified externally

Hello. How I can say to qcad so it reopens the dxf file after it has been modified externally? I draw from ECMAScript: 1. Open qcad 2. Edit myscript.js and run from editor qcad -allow-multiple-instances -autostart myscript.js && qcad /tmp/myscript.dxf 3 View result in qcad 4. Switch to qcad 5. Close...
by Nick1974
Fri Sep 29, 2017 11:56 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: to get the current directory
Replies: 2
Views: 5128

to get the current directory

Hello.
How can I get the current directory from ECMAScript to use it in include, importFile and exportFile commands?
I do not want use full path.
I run qcad as

Code: Select all

qcad -allow-multiple-instances -autostart foo.js && qcad foo.dxf
by Nick1974
Fri Sep 29, 2017 11:52 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: RLine vs RLineEntity
Replies: 1
Views: 4255

RLine vs RLineEntity

Hello.
Please, explain to me the difference between RLine and RLineEntity.
Why RLine is created and then convert to RLineEntity in scripts/simple_create.js?
Why one not create RLineEntity right away?
Are RLine and others RShape need what for?

Go to advanced search