Search found 111 matches

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

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: 2489

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: 2489

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 36 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: 2489

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: 434

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: 250

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: 434

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...
by dfriasb
Tue Apr 28, 2020 10:48 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: export entity length and area to external csv file
Replies: 2
Views: 678

export entity length and area to external csv file

Hello all,

I'm getting some entity properties like length and area from my drawing document with QCAD ecmascript console. I would like to write them to external .csv file. Which is the proper way to do that? Is it with an RExporter?

Any help will be very welcomed. Best regards,

David
by dfriasb
Sun Apr 12, 2020 6:01 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: entity color to lineweight
Replies: 1
Views: 764

entity color to lineweight

Hello all, I'm writing a script in order to set lineweight of all entities that have specific color. I started with "Dark Green" entities; they should be converted to 0.13mm weight: var document = EAction.getDocument(); var di = EAction.getDocumentInterface(); var entities = document.queryAllEntitie...
by dfriasb
Tue Apr 07, 2020 10:22 pm
Forum: QCAD Developers and Contributors
Topic: addSimpleText - need help
Replies: 4
Views: 3820

Re: addSimpleText - need help

Maybe I'm typing wrong, but full set of parameters is not working for me:

Code: Select all

addSimpleText('test', 0, 0, 0.15, 45, "Standard", "VAlignMiddle", "HAlignCenter", false, false)
Any help will be appreciated. Regards,
David.
by dfriasb
Sat Mar 28, 2020 8:40 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: set current linetype-lineweight scripts - How to update Pen Toolbar?
Replies: 2
Views: 933

set current linetype-lineweight scripts - How to update Pen Toolbar?

Hi all, I've written some scripts to set current linetype and lineweight with command line and keyboard input. They are working exactly as I wanted, but Pen Toolbar is not updated when script runs. This is a little bit confusing for me. Can I introduce some function in script to update Pen Toolbar? ...
by dfriasb
Thu Mar 26, 2020 8:59 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: setCurrentLineweight & setCurrentLineweight functions not found
Replies: 2
Views: 486

setCurrentLineweight & setCurrentLineweight functions not found

Dear all,

I can find and use setCurrentColor in Script Shell, but not setCurrentLineweight or setCurrentLineweight. Is there a way to "load" and use them? I'ld like to use them both in Script Shell and in script files.

Thanks. Best regards,

David
by dfriasb
Sun Mar 22, 2020 10:51 pm
Forum: QCAD Troubleshooting and Problems
Topic: Text edition bug
Replies: 4
Views: 637

Text edition bug

Hello all, It seems that some bug is happening when editing text Height property with text editor. QCAD is stopping for some seconds (10-20 aprox.). It's happening to me when both creating or editing a text. In order to reproduce this you can: Open the attached file Create new text with T,E Select H...

Go to advanced search