Setting file export path

Discussion forum for contributors and developers who are using the QCAD version 3 ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Re: Setting file export path

Postby 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.
User avatar
andrew
Site Admin
 
Posts: 2590
Joined: Fri Mar 30, 2007 6:07 am

Re: Setting file export path

Postby 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. :)
ash120
Newbie Member
 
Posts: 9
Joined: Tue Apr 17, 2012 7:50 am

Re: Setting file export path

Postby 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 226 times
User avatar
andrew
Site Admin
 
Posts: 2590
Joined: Fri Mar 30, 2007 6:07 am

Previous

Return to QCAD 3 Developers and Contributors

Who is online

Users browsing this forum: No registered users and 1 guest