I'm trying to plot multiple drawings in the background and having trouble changing the layouts.
I'm only accessing the drawings Database and not actually opening each drawing to screen.
LayoutManager.Current.CurrentLayout = layout.LayoutName
Gives an 'eSetFailed' error
Application.AcadApplication.ActiveDocument.SetVariable("CTAB", layout.LayoutName)
Gives an error saying 'Error setting system variable'
I'm guessing both are failing because the drawing isn't open on screen.
Is it possible to switch layouts with only access to the drawing's database?
Solved! Go to Solution.
Solved by SRSDS. Go to Solution.
Thank you. That's a much simpler way of plotting pdfs than I had.
I've ended up opening each drawing rather than in the back ground.
Used code from one of Gile's posts to switch tabs.
And added CommandFlags.Session. One, or all three fixed my problem.
Can't find what you're looking for? Ask the community or share your knowledge.