Jig a block with keywords
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using the code from Kean's blog here to jig insert a block. What it's missing is the ability to change the rotation and base point during the jig.
I'm basically trying to reproduce the functionality that the normal Insert command gives which, I know, sounds a bit like I'm reinventing the wheel but I need to use the jig as I want to do other stuff to the block after the insert has finished like exploding it or changing its layer.
I've tried Tony T's commandline but that doesn't seem to work with commands that require user interaction.
I've got as far handling the keywords e.g. if the user enters "R" to rotate, I can ask them to enter an angle using ed.GetAngle but then if I call Run on the jig again (to continue the jig), the point that the block is inserted at is different to where the user clicked to place it. Calling Run again here might not be the right thing to do...
Also, I can't see how to temporarily add the block to the drawing so that the user can select a new base point by entering B.
All pointers gratefully received.
Thanks