Hello all,
I guess it has to be possible to obtain the box that is containing a polyline with simple script. But what do you think of getting the biggest box INSIDE a polyline? Is there any function already for that purpose?
Regards,
David
Search found 119 matches
- Fri Apr 09, 2021 1:03 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Polyline boxes
- Replies: 0
- Views: 15468
- Sun Mar 14, 2021 9:23 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Setting layers of texts and dimensions
- Replies: 3
- Views: 15012
Setting layers of texts and dimensions
Hello all, I'm writing a script for changing layers of all texts and dimensions simultaneously: var di = this.getDocumentInterface(); var document = this.getDocument(); var op = new RModifyObjectsOperation(); var entitiesIds = document.queryAllEntities(false, false); for (var i=0; i<entitiesIds.leng...
- Fri Feb 19, 2021 2:50 pm
- Forum: Finished 'Ready to go' Scripts/Plug-in's
- Topic: Orphanize layers
- Replies: 6
- Views: 89284
Re: Orphanize layers
That's how it should be. But I'm sorry I'm not so good scripting; I just left this script for the mother layer name "a", and I change it directly in the script when needed...I was thinking there would be a pop up while inside QCAD where I had to enter or choose the layer.
- Fri Feb 19, 2021 9:26 am
- Forum: Finished 'Ready to go' Scripts/Plug-in's
- Topic: Orphanize layers
- Replies: 6
- Views: 89284
Re: Orphanize layers
Did you set the parentLayerName variable in the script?
If parent layer name is not "a", you should change it to correct one.
Code: Select all
var parentLayerName = "a"; // name of parent layer
- Tue Jan 26, 2021 9:58 pm
- Forum: QCAD 'How Do I' Questions
- Topic: [solved] Command Line Tools
- Replies: 2
- Views: 3365
Re: Command Line Tools
Thanks a lot!
- Mon Jan 25, 2021 9:07 pm
- Forum: QCAD 'How Do I' Questions
- Topic: [solved] Command Line Tools
- Replies: 2
- Views: 3365
[solved] Command Line Tools
Hello all, I'm trying to use dwg2dwg command line tool with qcad-3.24.3-pro-linux-x86_64. I'm getting "No such file or directory" when trying to execute it in shell. I was looking in dwg2dwg file and I found it is asking for this file: scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js I have no Pro folder inside...
- Thu Dec 17, 2020 10:25 am
- Forum: QCAD 'How Do I' Questions
- Topic: Lineweights in model space
- Replies: 1
- Views: 2362
Lineweights in model space
Hello all, It's great that you can see different lineweights in model space when you have Screen-based linetypes activated. I would like to know it it is possible to change its behavior; I would like to see thicker lines from 0.25mm or 0.35mm, instead of 0.50mm like it is right now. I is possible an...
- Tue Jul 07, 2020 8:03 am
- Forum: Chat
- Topic: The World according to QCAD
- Replies: 29
- Views: 139268
Re: The World according to QCAD
Welcome!
- Sun May 10, 2020 9:26 pm
- Forum: Finished 'Ready to go' Scripts/Plug-in's
- Topic: Orphanize layers
- Replies: 6
- Views: 89284
Orphanize layers
Hello all,
I was looking for the way to move away all child layers from its parent layer. I didn't find it, so I made a small script than can do that. You only have to type on the script the name of the parent layer.
I hope you can find it useful.
I was looking for the way to move away all child layers from its parent layer. I didn't find it, so I made a small script than can do that. You only have to type on the script the name of the parent layer.
I hope you can find it useful.
- Sat May 09, 2020 12:19 pm
- Forum: QCAD 'How Do I' Questions
- Topic: Easiest way to link data to an object?
- Replies: 11
- Views: 11294
Re: Easiest way to link data to an object?
By the way, is there any way to create Custom Properties with Tittle different from "QCAD" inside QCAD application? And any idea of how could it be outside?
- Sat May 09, 2020 10:30 am
- Forum: QCAD 'How Do I' Questions
- Topic: Easiest way to link data to an object?
- Replies: 11
- Views: 11294
Re: Easiest way to link data to an object?
I have made a function that prints into command line all Custom Properties from selected entities. I hope someone can find it useful. I'm planning to write some similar function to print this data into csv in order to export to spreadsheets.
Best regards, David.
Best regards, David.
- Fri May 08, 2020 10:14 am
- Forum: QCAD 'How Do I' Questions
- Topic: Easiest way to link data to an object?
- Replies: 11
- Views: 11294
- Tue May 05, 2020 3:00 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: script not working
- Replies: 2
- Views: 13685
Re: script not working
Thank you Andrew,
Now it's working also for me. I moved to /Misc and changed DFa.js by EAction.js. So I think the bug is in my DFa.js file.
Regards, David.
Now it's working also for me. I moved to /Misc and changed DFa.js by EAction.js. So I think the bug is in my DFa.js file.
Regards, David.
- Mon May 04, 2020 3:34 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Store/Use Position scripts
- Replies: 1
- Views: 12666
Store/Use Position scripts
Hello all,
I was looking for the code of these scripts in https://www.qcad.org/doc/qcad/latest/de ... 22cb3.html but I can't find Misc/Information directory. Is it somewhere else? Thanks so much!
David
I was looking for the code of these scripts in https://www.qcad.org/doc/qcad/latest/de ... 22cb3.html but I can't find Misc/Information directory. Is it somewhere else? Thanks so much!
David
- Sat May 02, 2020 3:51 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: script not working
- Replies: 2
- Views: 13685
script not working
Dear all, I have reviewed this code many times but I can't find what is not working. When I paste the central part in QCAD script console it works great, but not when try it as a command. I guess it is something related with guiAction; looks like action is not completed... Any help will be very welc...