Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Base view script

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
joseZ9KZ7
420 Views, 3 Replies

Base view script

Hi all,

 

Is it possible to create a script to generate new layers and allocate automatically base views on it?

 

Thanks in advance

3 REPLIES 3
Message 2 of 4
ed57gmc
in reply to: joseZ9KZ7

Yes, you can use lisp or VBA. You can also create an SCR file for use with the SCRIPT command. Just open NOTEPAD and type what you would type at the command line and save the file with an scr extension. However, its easier to create a template for starting a new dwg. Take any dwg and do SAVEAS, change the file type to dwt and save. Now you can choose this template when starting a new dwg. If you have an existing dwg you want to add layers to, just INSERT the file.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 3 of 4
joseZ9KZ7
in reply to: ed57gmc

Thank you.

 

Do you know if is there any example out there?

 

Kind regards

Message 4 of 4
ed57gmc
in reply to: joseZ9KZ7

Example of what? We don't know exactly what you want. Can you get what you want by typing commands at the command line? If so, copy that output to Notepad for a script file. That's the easiest way to do it if you don't know any programming. An example of creating a layer and setting its color:

 

-layer new layer1 color 144 layer1

 

A space or return is like the {ENTER} key.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report