Search found 112 matches

by dfriasb
Tue Apr 03, 2018 2:43 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: introduce script variable content in command line
Replies: 2
Views: 5636

Re: introduce script variable content in command line

Here I attach the script. It is working, but just for one specific string: ".v1"
isolate.js
(1.68 KiB) Downloaded 328 times
I would like to be able to define the variable

Code: Select all

subs
that contains this string, from QCAD.

Thanks,

David
by dfriasb
Sat Mar 31, 2018 1:01 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: introduce script variable content in command line
Replies: 2
Views: 5636

introduce script variable content in command line

Hello all, I would like to write a script that works like this: 1.- Ask me in command line to introduce a string. 2.- Use this string to find certain layer names. 3.- Set specific properties to this layers, like freezing, locking, etc. I know how to do steps 2. and 3., but I never succeed on step 1....
by dfriasb
Fri Mar 02, 2018 10:04 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Script Shell. How to repeat last command? Variable scope
Replies: 2
Views: 4637

Re: Script Shell. How to repeat last command? Variable scope

1.- Is there some way to get last line entered? Yes, arrow up should do this but is currently broken due to implementation of arrow up shortcuts to pan zoom. Arrow up is working perfectly in Command Line but not in Script Shell . This text is coming in my case when I press arrow up, which is and ol...
by dfriasb
Sat Feb 17, 2018 9:11 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Script Shell. How to repeat last command? Variable scope
Replies: 2
Views: 4637

Script Shell. How to repeat last command? Variable scope

Script Shell seems to be a very powerful tool. But I have some doubts about it: 1.- Is there some way to get last line entered? It usually happens to me that I want to rewrite last command with some little change, but then I have to rewrite the whole line again. In some terminals you can do that wit...
by dfriasb
Wed Feb 14, 2018 12:06 pm
Forum: QCAD 'How Do I' Questions
Topic: Is it possible to create a hatch "linked" to a polyline?
Replies: 1
Views: 916

Is it possible to create a hatch "linked" to a polyline?

Hello all, I can see a hatch property which is "From Entity" (Yes/No) in Property Editor widget, as it's shown in attached image file. Screenshot from 2018-02-14 12-03-15.png I know how to create a hatch from selection (polyline), but I don't know how to "link" this hatch to polyline so when it chan...
by dfriasb
Sat Jan 27, 2018 5:52 pm
Forum: QCAD 'How Do I' Questions
Topic: Renaming all layers in a drawing
Replies: 1
Views: 1131

Renaming all layers in a drawing

Hello all, I'm trying to write a script in order to rename all layers of a file, adding "z ... " at the beginning of their current name, so they'll be all inside a new superlayer called "z". My script looks like this: var di = this.getDocumentInterface(); var document = this.getDocument(); var layer...
by dfriasb
Sat Jan 13, 2018 5:21 pm
Forum: QCAD Troubleshooting and Problems
Topic: [solved] My keyboard types with a different layout in QCAD
Replies: 10
Views: 6656

Re: [solved] My keyboard types with a different layout in QCAD

Hello,

I had the same issue again, but fortunately it was only temporally this time.

I guess it had something to do with Ubuntu Keyboard Layout selection, but not completely sure... I'm sorry I cannot help more than this.

Best regards,
David
by dfriasb
Mon Jan 08, 2018 11:23 am
Forum: QCAD 'How Do I' Questions
Topic: Filter with Regular Expression
Replies: 2
Views: 1305

Re: Filter with Regular Expression

Very interesting!
Thank you!!
by dfriasb
Sun Jan 07, 2018 10:57 am
Forum: QCAD 'How Do I' Questions
Topic: Filter with Regular Expression
Replies: 2
Views: 1305

Filter with Regular Expression

Hello all,

Where can I find the syntax for filtering using Selection Filter widget with Regular Expressions?
I'm trying expressions like "2+1", "=2+1", etc. but they are not working...

Thanks!!

David
by dfriasb
Mon Jan 01, 2018 12:36 pm
Forum: QCAD 'How Do I' Questions
Topic: Show/Hide blocks by name
Replies: 0
Views: 3058

Show/Hide blocks by name

Hello all and happy New Year! I'm trying to write a script to show/hide specific blocks depending on their name. For example, I would like to control visibility of all the blocks that contain "_old" string in their name. In order to "filter" these names I'm trying this piece of script: // ... var Bl...
by dfriasb
Fri Dec 22, 2017 10:11 am
Forum: QCAD Troubleshooting and Problems
Topic: Up/Down arrow keys behavior
Replies: 0
Views: 3231

Up/Down arrow keys behavior

Hello all, I just installed last version of QCAD Pro 19.2. So happy with new features like moving objects with keyboard arrows and with new properties of layers (printable/snapable). Thank you very much, I think all of this will be very useful for me. I just have one question about up and down arrow...
by dfriasb
Thu Dec 21, 2017 5:43 pm
Forum: QCAD 'How Do I' Questions
Topic: Is it possible to lock/unlock blocks?
Replies: 1
Views: 1058

Is it possible to lock/unlock blocks?

Just like layers. I don't see the way.

Thanks,

David
by dfriasb
Wed Nov 29, 2017 11:23 pm
Forum: QCAD 'How Do I' Questions
Topic: Show/Hide layers with script
Replies: 1
Views: 1022

Show/Hide layers with script

Hello all, I'm using layer.setFrozen(true) and layer.setFrozen(false) in two scripts to hide/show some layers with certain names. You can download the attached .js files with the scripts and one test drawing to verify try them if you want. The two commands should have the commitment of hiding or sho...
by dfriasb
Fri Nov 24, 2017 4:47 pm
Forum: QCAD Troubleshooting and Problems
Topic: Multi Pages settings window not working
Replies: 2
Views: 2287

Re: Multi Pages settings window not working

I wasn't automatically warned of this last version, even I have enabled this option in "Check for QCAD Pro Updates" window. Anyway I installed it and now this problem is not happening anymore.

Thanks again!

Go to advanced search