Search found 177 matches

by smf
Thu Jan 15, 2015 4:38 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Fixed Variegate in QCTrack version 77.
by smf
Thu Jan 15, 2015 4:24 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Tutorial step 8: align

Attached is an example of how to use the QCTrack align function. If you have one or more tracks that should be aligned to another track but moved only on an (may be arbitrary) axis, you can do this: Select tracks to align. Select QCTrack / Align or type QA. Select to-be-aligned track end. Select tar...
by smf
Thu Jan 15, 2015 3:57 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Attached is another (basic) example library for Ninco slot car tracks.
by smf
Thu Jan 15, 2015 3:55 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Sooooo. 8) Attached was the current version 76 with most of Husky's suggestions. The new function "Insert exploded block" might be useful to re-use existing blocks (and even might be useful for "normal" use beside QCTrack). All dialogs should be consistent with other QCad dialogs (no QDoubleSpinBox,...
by smf
Thu Jan 15, 2015 3:21 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Adding objects in a batch
Replies: 10
Views: 17700

Re: Adding objects in a batch

into the same block as the original and you want to insert the clone into the current block instead Yes, that's the point. I want to insert all entities onto the original layer but the current block. set the blockId of the clone to the current blockId and use op.addObject(obj, true) instead. Thank ...
by smf
Thu Jan 15, 2015 11:58 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Adding objects in a batch
Replies: 10
Views: 17700

Re: Adding objects in a batch

Thanks for the fast reaction. :) I have a script that has a block-id in this.blockId. The complete getOperation function is InsertExplodedBlock.prototype.getOperation = function(preview) { var document = this.getDocument(); if (isNull(document)) { return undefined; } var storage = document.getStorag...
by smf
Thu Jan 15, 2015 11:20 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Adding objects in a batch
Replies: 10
Views: 17700

Re: Adding objects in a batch

Hi Andrew, this is an old thread, I know... But I think, my question belongs to it. I'm trying to insert (copies of) several (sub-)entities. So I tried: for (var j = 0; j < subIds.length; j++) { var sub = document.queryEntity(subIds[j]); var clone = sub.clone(); clone.move(this.pos); //no changes wi...
by smf
Mon Jan 12, 2015 11:15 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

The 'Create Track' dialog window is opening properly now, thanks very much Glad to see, thanks for reporting! :D Coordinate Formates are partly mixed up. In "Create Track" I see my QCAD settings used (Decimal Point = DOT). In Variegate I have to use Comma and the Dialog is showing both - dot and co...
by smf
Sat Jan 10, 2015 11:11 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Hi Husky, thank you for your feedback. :) I'm very happy to see someone is using QCTrack and thinks about how to make it better. :) Create Track: Remember function - nice! BTW: The name in the QCTrack Menu should also be "Create Track". You're right, will be done in the next version. Track Widget: I...
by smf
Fri Jan 09, 2015 10:28 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Attached is the current version 71 that uses RMathLineEdit in the Create dialog and supports load/save/restore as Husky suggested.

@Husky: I think, now all your suggestions are implemented, aren't they? :) 8) :)
by smf
Fri Jan 09, 2015 8:48 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

Thank you very much. Attached is the current version 68 within an explicit QCTrack folder. Hopefully this leads to less problems installing QCTrack, all further snapshots will contain this top directory.

Clive, can you test the new version?
by smf
Fri Jan 09, 2015 3:00 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

:( I'm very sorry - I have no idea left. :( You already tried Linux, and you already tried the debugger. :(

Perhaps we should ask Andrew?
by smf
Fri Jan 09, 2015 2:35 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

:( Hm, no debugger, no dialog. :( I'm sorry, no idea. Do you have any other plugins / addons installed?
by smf
Fri Jan 09, 2015 1:55 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

:( Hm. :( No idea. The debugger does not pop up? :(

Just to ensure we are talking about the same thing, I recorded the behavor of "Create" with the current version as animated gif on my machine.
by smf
Fri Jan 09, 2015 1:30 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: model railroad track planning
Replies: 130
Views: 2725870

Re: model railroad track planning

No Nothing for me On Windows 8.1, any ideas?
Hm, I only use Linux, no Windows here... So the menu item is existing and clickable, but after clicking nothing happens? Could you please start QCad with the following options:

Code: Select all

qcad -rescan -enable-script-debugger
Perhaps the debugger tells us more.

Go to advanced search