How to make current a layout?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to make current a layout?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Stefano
Guest





Posted: Mon Mar 21, 2005 3:39 pm    Post subject: How to make current a layout? Reply with quote

Sorry, i am a beginner.....
I have a draw with 3-4 layouts and i want to save it with first layout
active: how can i make it?

thank!!!!!

Back to top
Joe Sutphin
Guest





Posted: Mon Mar 21, 2005 7:14 pm    Post subject: Re: How to make current a layout? Reply with quote

ThisDrawing.ActiveLayout = ThisDrawing.Layouts("Layout2")

Then save the drawing.

Joe
--

"Stefano" <bux1963@hotmail.com> wrote in message
news:423ea44d$1_3@newsprd01...
Quote:
Sorry, i am a beginner.....
I have a draw with 3-4 layouts and i want to save it with first layout
active: how can i make it?

thank!!!!!
Back to top
James Belshan
Guest





Posted: Mon Mar 21, 2005 9:18 pm    Post subject: Re: How to make current a layout? Reply with quote

This will account for the layouts having been reordered

Dim curLayout As AcadLayout
For Each curLayout In ThisDrawing.Layouts
If curLayout.TabOrder = 1 Then
ThisDrawing.ActiveLayout = curLayout
Exit For
End If
Next 'curLayout



"Stefano" <bux1963@hotmail.com> wrote in message
news:423ea44d$1_3@newsprd01...
Quote:
Sorry, i am a beginner.....
I have a draw with 3-4 layouts and i want to save it with first layout
active: how can i make it?

thank!!!!!



Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB