boomoto Posted June 22, 2010 Share Posted June 22, 2010 I have VBA code to add a new layout. What I need now is to be able set the default style, make sure the display plot styles is on as well make sure there is no pop up form. Thats the first step. I also need to be able to remove the layout once I'm done with it using again VBA code. So please if you can help with any of this much appreciate. Quote Link to comment Share on other sites More sharing options...
Freerefill Posted June 22, 2010 Share Posted June 22, 2010 I don't know any VBA, but if you know how to send commands to the command line, you could use the -LAYOUT command. Quote Link to comment Share on other sites More sharing options...
boomoto Posted June 22, 2010 Author Share Posted June 22, 2010 I don't know any VBA, but if you know how to send commands to the command line, you could use the -LAYOUT command. Hey that will work for removing it But i need to some how create a new layout from either a template or load the exact commands in so the user doesn't have to click anything Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 22, 2010 Share Posted June 22, 2010 Just use the delete method on the Layout item: ThisDrawing.Layouts.Item("Layout1").Delete Quote Link to comment Share on other sites More sharing options...
10west Posted July 13, 2010 Share Posted July 13, 2010 You may research importing/exporting layouts between drawings. It's an ACAD command I think as well, so send command or sendkeys may work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.