script question: keep selection + colored aux entity
Posted: Sat Dec 13, 2014 9:31 am
Hi there,
I'm working on scripts to support model railroad track planning. Creating tracks, moving and duplicate-moving are working now thanks to Andrew. Two things are missing and I don't have an idea how to implement them:
1. How do I keep a previous selection after execution of a copying Transform-operation? Use case: select track, dup+move several times. Currently the newly inserted objects are selected but I want to keep the originally selected objects selected.
2. I would like to draw a colored and filled auxiliary circle to mark the source track. I succeeded in creating a circle but not in an eye-catching color or with filled area.
Attached you'll find my current work-in-progress-snapshot containing an example file and the created scripts. These have to reside in ...qcad.../scripts/QCTrack. After insertion into the scripts-directory there will be a new main menu "QCTrack" with three items "Create", "Move" and "Duplicate and move".
Thank you for any comment, hint or help
Best regards
Stefan
I'm working on scripts to support model railroad track planning. Creating tracks, moving and duplicate-moving are working now thanks to Andrew. Two things are missing and I don't have an idea how to implement them:
1. How do I keep a previous selection after execution of a copying Transform-operation? Use case: select track, dup+move several times. Currently the newly inserted objects are selected but I want to keep the originally selected objects selected.
2. I would like to draw a colored and filled auxiliary circle to mark the source track. I succeeded in creating a circle but not in an eye-catching color or with filled area.
Attached you'll find my current work-in-progress-snapshot containing an example file and the created scripts. These have to reside in ...qcad.../scripts/QCTrack. After insertion into the scripts-directory there will be a new main menu "QCTrack" with three items "Create", "Move" and "Duplicate and move".
Thank you for any comment, hint or help
Best regards
Stefan