boomoto Posted June 22, 2010 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
Freerefill Posted June 22, 2010 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
boomoto Posted June 22, 2010 Author 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
Lee Mac Posted June 22, 2010 Posted June 22, 2010 Just use the delete method on the Layout item: ThisDrawing.Layouts.Item("Layout1").Delete Quote
10west Posted July 13, 2010 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
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.