.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Switch Layouts

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
SRSDS
182 Views, 2 Replies

Switch Layouts

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?

 

2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: SRSDS
Message 3 of 3
SRSDS
in reply to: SRSDS

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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report