Jump to content

Recommended Posts

Posted

Hi froum.

Is it possible to make new layout with a function like "entmake"???

I know that layouts are the entities of "acdblayout" dictionary and "acdblayout" dictionary is an entity of "namedobjdict" dictionary itself.

Now, i 'm looking for a way that can add new layout name with self properties to acdblayout dictionary by using entmakex function.

Is it possible? If possible, how can i make a list that contain plotsettings and layout settings which should create???

If anyone have experience about it, please guide me....

thanks.

kasra

Posted

I believe it would be possible, but it is much easier with ActiveX:

 

(vla-add
 (vla-get-Layouts
   (vla-get-activeDocument
     (vlax-get-acad-object))) "NewLayout")

Posted

So thanks Lee.

I 'm new in lisp. so i 'm unfamiliar with ActiveX(vla-vlax-....).

I cant understand how ActiveX functions work and when i should use vla or vlax or ... .

Posted

Also as i heared before, in new autocad versions (like 2010), vba ability has been omited. (It is based on some people's opinion). Is it true?

Posted
So thanks Lee.

I 'm new in lisp. so i 'm unfamiliar with ActiveX(vla-vlax-....).

I cant understand how ActiveX functions work and when i should use vla or vlax or ... .

 

Kasra,

 

If you don't already, use the Visual LISP Editor provided with AutoCAD to write your code, the help files are excellent.

Posted

I should try learning Visual lisp and reactors for obtaining best result in my way.

Thanks and wish best times for all of you.

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...