Setting file export path

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Setting file export path

Post by andrew » Fri Apr 27, 2012 5:41 pm

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.

ash120
Junior Member
Posts: 11
Joined: Tue Apr 17, 2012 7:50 am
Location: Australia

Re: Setting file export path

Post by ash120 » Tue May 01, 2012 5:02 am

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. :)

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: Setting file export path

Post by andrew » Fri May 11, 2012 12:34 am

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.
Attachments
PolylineEquidistant.js
Replaces scripts/Draw/Polyline/PolylineEquidistant.js
(20.35 KiB) Downloaded 701 times

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”