Search found 119 matches

by dfriasb
Fri Apr 09, 2021 1:03 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Polyline boxes
Replies: 0
Views: 1953

Polyline boxes

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
by dfriasb
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: 1
Views: 1583

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...
by dfriasb
Fri Feb 19, 2021 2:50 pm
Forum: Finished 'Ready to go' Scripts/Plug-in's
Topic: Orphanize layers
Replies: 6
Views: 7381

Re: Orphanize layers

I was thinking there would be a pop up while inside QCAD where I had to enter or choose the layer.
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...
by dfriasb
Fri Feb 19, 2021 9:26 am
Forum: Finished 'Ready to go' Scripts/Plug-in's
Topic: Orphanize layers
Replies: 6
Views: 7381

Re: Orphanize layers

Did you set the parentLayerName variable in the script?

Code: Select all

var parentLayerName = "a"; // name of parent layer
If parent layer name is not "a", you should change it to correct one.
by dfriasb
Tue Jan 26, 2021 9:58 pm
Forum: QCAD 'How Do I' Questions
Topic: [solved] Command Line Tools
Replies: 2
Views: 882

Re: Command Line Tools

Thanks a lot!
by dfriasb
Mon Jan 25, 2021 9:07 pm
Forum: QCAD 'How Do I' Questions
Topic: [solved] Command Line Tools
Replies: 2
Views: 882

[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...
by dfriasb
Thu Dec 17, 2020 10:25 am
Forum: QCAD 'How Do I' Questions
Topic: Lineweights in model space
Replies: 1
Views: 693

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...
by dfriasb
Tue Jul 07, 2020 8:03 am
Forum: Chat
Topic: The World according to QCAD
Replies: 23
Views: 46276

Re: The World according to QCAD

Welcome!
by dfriasb
Sun May 10, 2020 9:26 pm
Forum: Finished 'Ready to go' Scripts/Plug-in's
Topic: Orphanize layers
Replies: 6
Views: 7381

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.
by dfriasb
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: 4670

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?
by dfriasb
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: 4670

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.
queryCustomPropertiesFromSelection.js
(928 Bytes) Downloaded 162 times
by dfriasb
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: 4670

Re: Easiest way to link data to an object?

andrew wrote:
Fri Jan 06, 2017 3:37 pm
If you are looking for an ID to use as reference, you can use the object handle for this (see property editor). The handle of an object is persistent (stored to DXF/DWG).
So entity Id only works on dxf, do it?
by dfriasb
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: 1819

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.
by dfriasb
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: 1356

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
by dfriasb
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: 1819

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

Go to advanced search