kasra Posted April 19, 2010 Posted April 19, 2010 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 Quote
Lee Mac Posted April 19, 2010 Posted April 19, 2010 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") Quote
Lee Mac Posted April 19, 2010 Posted April 19, 2010 This will give you an idea of the entity data associated with the Layout: http://autodesk.com/techpubs/autocad/acad2000/dxf/layout_dxf_07.htm Quote
kasra Posted April 19, 2010 Author Posted April 19, 2010 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 ... . Quote
kasra Posted April 19, 2010 Author Posted April 19, 2010 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? Quote
lpseifert Posted April 19, 2010 Posted April 19, 2010 Here's one person's opinion http://forums.augi.com/showthread.php?t=111828 Quote
alanjt Posted April 19, 2010 Posted April 19, 2010 Here's one person's opinionhttp://forums.augi.com/showthread.php?t=111828 Maybe they'll develop a whole new set of commands based on the newly common API, like they did with VLisp. Quote
Lee Mac Posted April 19, 2010 Posted April 19, 2010 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. Quote
kasra Posted April 19, 2010 Author Posted April 19, 2010 I should try learning Visual lisp and reactors for obtaining best result in my way. Thanks and wish best times for all of you. 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.