Search found 11 matches

by ash120
Sun Jun 11, 2017 2:05 pm
Forum: QCAD/CAM
Topic: Automating QCAD/CAM 3 functions using scripts
Replies: 8
Views: 13919

Re: Automating QCAD/CAM 3 functions using scripts

Hi Andrew,

Thanks for your reply and help with explaining the toolpath blocks, I 'll give it a go.. :D
by ash120
Wed Jun 07, 2017 4:15 pm
Forum: QCAD/CAM
Topic: Automating QCAD/CAM 3 functions using scripts
Replies: 8
Views: 13919

Automating QCAD/CAM 3 functions using scripts

Hi I'm looking to automate Qcad / cam by writing a script to batch process dxf files so they will be automatically toolpathed by layer, and then Gcode automatically saved for each file. I have read your article on setting a Gcode configuration, but I wanted to see what CAM functions are available to...
by ash120
Tue May 01, 2012 5:02 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

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. :)
by ash120
Thu Apr 26, 2012 8:41 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Hi Andrew, Thanks a lot for that, and for your tips on variable names.. my script works well now. :D Can you show an example of how to now use the PolylineEquidistant class for crating a "parallel" polyline using the polyline entity created above? I Assume we use PolylineEquidistant::createEquidista...
by ash120
Wed Apr 25, 2012 3:46 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

I tried using your code but the debugger has an exemption on line 122: traversed[entity.getId()] = true; of the polyinefromsegments script. I assume i'm still not finding a valid entity. Part of my code is as follows where Entity is the last segment of the geometry i want to convert to polyline. //....
by ash120
Mon Apr 23, 2012 2:42 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Hi Andrew, I want to use the polylinefromsegments function, but I need help in how to find particular entity that I have added to a Document through an operation. If for example I've added several RlineEntity objects to single operation and then applied that operation to a document, How do I then se...
by ash120
Thu Apr 19, 2012 9:05 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Hi Andrew, thanks for the help with the layers.. Could you advise me on how to convert a a series of lines and curves (that form a closed shape) that i've programmed using the Rdocumentinterface into a single polyline. So for example if I have all my line and curve entities in a single operation obj...
by ash120
Wed Apr 18, 2012 12:15 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Hi Andrew, Thanks that was easy and it worked well. my next question (sorry about all the questions) is how to add new layers and set the current layer so that when I use the apply function, the new entities are added to the current layer. I tried declaring a new layer object as in OpenFile but it d...
by ash120
Wed Apr 18, 2012 7:57 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Thanks Andrew,

Is there an easy way to script the loading of a drawing file that was created using the RdocumentInterface , into the GUI?
Either before or after it is exported to dxf.

regards
by ash120
Tue Apr 17, 2012 1:58 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Re: Setting file export path

Hi Thanks for that it works well now.. :D

Can you give an example how to implement Qdir, is it a Qt class? as I could not find it in the Application framework documentation.

thnaks
by ash120
Tue Apr 17, 2012 8:06 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Setting file export path
Replies: 17
Views: 54174

Setting file export path

Hi, I'm still new to Qcad scripting, I've just finished working through the scripting tutorials, I need help to find the function that sets the export path it appears the default path is the Qcad folder. I'm using the exportFile() function of the RdocumenIInerface Class for saving dxf files. thanks ...

Go to advanced search