Setting file export path
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: Setting file export path
I've just seen that the PolylineEquidistant class is not yet suitable for non-interactive use. The changes required are relatively minor though. If I have time I will upload a new version for file PolylineEquidistant.js and small example here in the coming days.
Re: Setting file export path
Thanks for that Andrew I would be great if class that would work as really be useful...,
I'm Finding Qcad scripting really powerful and easy once you get the feel for how the class structure works. Ecmascript is a really good choice for a scripting language too.
I'm Finding Qcad scripting really powerful and easy once you get the feel for how the class structure works. Ecmascript is a really good choice for a scripting language too.
Re: Setting file export path
I've adjusted the equidistant function, so it can be called from other scripts.
The parameters are:
polylineEntity: RPolylineEntity: Base polyline entity.
number: Number of equidistans to create.
distance: Distance between base and first equidistant.
side: RS.RightHand or RS.LeftHand
useArcsAtCorners: true: round corners / false: sharp corners.
The parameters are:
polylineEntity: RPolylineEntity: Base polyline entity.
number: Number of equidistans to create.
distance: Distance between base and first equidistant.
side: RS.RightHand or RS.LeftHand
useArcsAtCorners: true: round corners / false: sharp corners.
- Attachments
-
- PolylineEquidistant.js
- Replaces scripts/Draw/Polyline/PolylineEquidistant.js
- (20.35 KiB) Downloaded 723 times