Message 1 of 5

Not applicable
07-03-2019
03:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need a little kick in the right direction, because I can't get it:
I have several dwg's open in AutoCAD and start a script which opens another file, does some stuff and closes the file.
After closing, I want to get back / reactivate the drawing where I started from and not activate the ltest opened file.
But how do I get it? (Especially I don't get how to set the active / start dwg as activeDwg)
The code
...
Dim ActiveDwg as AcadDocument
ActiveDwg = ThisDrawing '<---- the missing / wrong step, I think
' ...open another dwg
'..do some stuff
' ...close dwg
ThisDrawing.ActiveLayout = ThisDrawing(ActiveDwg)
….
It would be nice, if someone could give mi an advice 🙂
thanks and kind regards
Solved! Go to Solution.