Search found 1210 matches
- Sat Feb 20, 2021 7:36 am
- Forum: QCAD 'How Do I' Questions
- Topic: Import Rectangles from a cutlist
- Replies: 15
- Views: 402
Re: Import Rectangles from a cutlist
@Kramerica, What Husky exploit is the multi-line paste for a tool. https://qcad.org/rsforum/viewtopic.php?t=7017&p=26924#p26925 Here 'RE' or a Rectangle from 2 points. Followed by 2 references each rectangle. References of opposite corners in your native format. Without influence on the persistent t...
- Thu Feb 18, 2021 3:47 pm
- Forum: QCAD 'How Do I' Questions
- Topic: Import Rectangles from a cutlist
- Replies: 15
- Views: 402
Re: Import Rectangles from a cutlist
Hi Kramerica,
I posted the script in the QCAD Developers and Contributors Forum:
https://qcad.org/rsforum/viewtopic.php?t=8135
Kind regards,
CVH
I posted the script in the QCAD Developers and Contributors Forum:
https://qcad.org/rsforum/viewtopic.php?t=8135
Kind regards,
CVH
- Thu Feb 18, 2021 3:45 pm
- Forum: QCAD Developers and Contributors
- Topic: Import and draw entities from a CSV file
- Replies: 0
- Views: 155
Import and draw entities from a CSV file
Based on the same basic principle as these: https://www.qcad.org/rsforum/viewtopic.php?t=7497 https://qcad.org/rsforum/viewtopic.php?t=7544 And posted especially for Kramerica: https://qcad.org/rsforum/viewtopic.php?f=32&t=8116 Installation: Close QCAD Create a new folder ...QCAD\scripts\Misc\Exampl...
- Thu Feb 18, 2021 2:32 pm
- Forum: QCAD 'How Do I' Questions
- Topic: Import Rectangles from a cutlist
- Replies: 15
- Views: 402
Re: Import Rectangles from a cutlist
Don't worry,
I have my script almost ready and back in basic form.
Point, Line, Arc, Circle, Triangle, Quad, Square and Rectangle are included.
Give me a few hours to post it.
I'll keep you informed ....
Regards,
CVH
I have my script almost ready and back in basic form.
Point, Line, Arc, Circle, Triangle, Quad, Square and Rectangle are included.
Give me a few hours to post it.
I'll keep you informed ....

Regards,
CVH
- Wed Feb 17, 2021 6:03 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Create arcs and circles from tessellated segments
- Replies: 9
- Views: 2114
Re: Create arcs and circles from tessellated segments
A problem that I'm encountering is that the PolyLineFromSelection object needs to be "initialized" by manually using it once from the toolbar or menu item before it is available to the script That looks like an 'include' flaw ... :!: I'm still in the struggling stage with the framework because docu...
- Tue Feb 16, 2021 10:37 am
- Forum: QCAD 'How Do I' Questions
- Topic: Import Rectangles from a cutlist
- Replies: 15
- Views: 402
Re: Import Rectangles from a cutlist
Hi, With scripting almost anything is possible ... :wink: In my case it would be easy because it is a snippet of code I already use. There are two things missing in your definition. The where and the angle . That would look like: "Rectangle", OffsetX, OffsetY, SizeX, SizeY, Angle (Closed polyline) O...
- Thu Feb 11, 2021 12:08 pm
- Forum: QCAD 'How Do I' Questions
- Topic: how to test text entity
- Replies: 9
- Views: 284
Re: how to test text entity
Then NOT force new: op.addObject(newTextEntity, false, false); // NOTuseCurrentAttributes, NOTforceNew My bad (copy-paste issue) :oops: Now you alter the text directly in the RTextEntity. No need for the getData or to create a new RTextEntity. That is, if this is all you need to do ... RModifyObject...
- Thu Feb 11, 2021 10:43 am
- Forum: QCAD 'How Do I' Questions
- Topic: how to test text entity
- Replies: 9
- Views: 284
Re: how to test text entity
Hi, that is more than one question. :wink: RTextEntity has also the getPlainText() method. Common is var ids from ' ID selected ' or ' more ID's ' but it is at your preference. RTextEntity is a pointer to a clone of the actual entity. https://qcad.org/doc/qcad/3.0/developer/class_r_document.html#ab0...
- Thu Feb 11, 2021 9:44 am
- Forum: QCAD 'How Do I' Questions
- Topic: How Do I use "arctangential" but with angle as a constraint
- Replies: 2
- Views: 106
Re: How Do I use "arctangential" but with angle as a constraint
Still, plausible ... in limited cases. - IF P1 and the start orientation is known. - IF P2 is selected. Then there might be an arc with given start orientation and sweep angle that fits the demand. The radius is the variable here. This is if P2 is 'beyond the line' and on a line with the orientation...
- Tue Feb 09, 2021 3:02 pm
- Forum: QCAD 'How Do I' Questions
- Topic: how to test text entity
- Replies: 9
- Views: 284
Re: how to test text entity
Loads variable 'a' with an REntityPointer to the entity in the document by current id = 9145.
Then one check if variable 'a' is a text entity:
Code: Select all
isTextEntity(a);
- Tue Feb 09, 2021 1:34 pm
- Forum: QCAD 'How Do I' Questions
- Topic: how to test text entity
- Replies: 9
- Views: 284
Re: how to test text entity
var document = this.getDocument(); // Reference to current document var ids = document.querySelectedEntities(); // Qset with selected id's var entity; // Entity in process (EntityPointer) Skip on no Selection: if (ids.length == 0) { // // ..... // return; } // Find Type: Text Entity for (i=0; i<ids...
- Tue Feb 09, 2021 10:19 am
- Forum: QCAD 'How Do I' Questions
- Topic: Planting style linetypes
- Replies: 4
- Views: 175
Re: Planting style linetypes
@ petevick: Thanks :wink: It can certainly apply the curved examples you show, maybe not exactly the same. Have a play, it's extremely clever. @ VSteele: Correct, Curves = RevisionCloud_L painter, Curves2 = RevisionCloud_LM painter Both as continuous polylines, both are fully scalable in drawing uni...
- Sat Feb 06, 2021 3:35 pm
- Forum: QCAD 'How Do I' Questions
- Topic: text attributes missing or messed up
- Replies: 4
- Views: 271
Re: text attributes missing or messed up
Dimensions are set up in the Paper_Space.
Double-click Layout "1".
Drawing Preference Size scale factor is 48x => dims are 48x larger.
For all the text @(0,0) I have no easy solution.
CVH
- Wed Feb 03, 2021 9:16 am
- Forum: QCAD 'How Do I' Questions
- Topic: Help with making a script file
- Replies: 5
- Views: 273
Re: Help with making a script file
Sure,
It is not a GUI action ...
... with a button.
(If you want that ...

Make selection.
Open Script Shell (GE)
Copy all.
Paste.
Saved as a *.js file
Make selection.
Run Script (XC) ...
Regards,
CVH
PS:


- Wed Feb 03, 2021 5:41 am
- Forum: QCAD 'How Do I' Questions
- Topic: Help with making a script file
- Replies: 5
- Views: 273
Re: Help with making a script file
Hi John, Already a while QCAD doesn't explode circles to 1 full Arc but in two 2 semi full Arcs. A Polyline that is. Recently, explosion of circles is made optional in App.Prefs. Below you'll find a script for full Arcs to Circles: Regards. CVH // Full Arcs to Circles script by CVH var doc = getDocu...