- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a bunch of drawings where a previous colleague did not follow design standards and the title blocks are all over the place. I am attempting to write a script that will select all the objects on the drawing and move them to 0,0 with the first point being relative to the lower left corner of the title block. (FYI, there are no blocks in these drawings. The titleblock itself is just lines and text; another thing I want to fix.)
I found these lines which get me very close:
(command "zoom" "object" "all" "")
(command "move" "all" "" (getvar "extmin") '(0 0))
The problem I am having I think has to do with the BASE value.
After running the above lines the titleblock are located at -0.25,-0.25. I discovered that the base was set to -0.25,-0.25. This should be simple; I set BASE to 0,0 and tried the above again. No change. Nothing I do seems to have any affect. If I start a new drawing and throw some objects on it and run the above code, everything works as expected.
I feel that this should have been a slam dunk but am stymied as to why I cannot get rid of this offset.
Does anyone have any clues?
Thanks in advance for any help.
Bob Hanrahan
Ace User since 1998
If this answered your question, please click on "Accept Solution"
Solved! Go to Solution.