Jump to content

Recommended Posts

Posted

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.

Posted

I don't know any VBA, but if you know how to send commands to the command line, you could use the -LAYOUT command.

Posted
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

Posted

Just use the delete method on the Layout item:

 

ThisDrawing.Layouts.Item("Layout1").Delete

  • 3 weeks later...
Posted

You may research importing/exporting layouts between drawings. It's an ACAD command I think as well, so send command or sendkeys may work

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...