Jump to content
micromachines

Adding custom properties to objects in the design tab

Recommended Posts

micromachines

Hi,

I am running a version of autocad architecture with a plugin that adds some custom properties to AEC objects such as doors that can be viewed under the design tab of the property palette. I want to make a macro that changes these properties but I don't know how to access them via lisp. When I use the inspect window in the visual lisp viewer the custom properties don't come up and when I use the vla-dump-object function, the custom properties are not listed also.

 

Does anyone have any idea if/how these properties are accessible? Also, can custom property fields be added via autolisp?

 

Untitled.jpg

Share this post


Link to post
Share on other sites
Roy_043

There are some standard ways to attach data to entities (Xdata, Dictionaries). Maybe your application uses one of these methods. But it seems unlikely that the application will also display the data you decide to add, this data might even cause errors.

 

It may help if you mention the name of the application and post a sample dwg.

Share this post


Link to post
Share on other sites
micromachines

Can you tell me a little about dictionaries and how to access them? I believe that it did say there was a dictionary attached to my object when I used inspect on it.

Share this post


Link to post
Share on other sites
BIGAL

You can get a list of the dictionary's in the drawing, as you think you know the name of the dictionary, post a dwg and we could have a look, it is possible to get further into the xdata knowing the dictionary name makes it much easier.

 

http://www.afralisp.net/autolisp/tutorials/dictionaries-and-xrecords.php

 

copy these two lines to command line

 

; look at 3 .
(setq mainDict (namedobjdict))
(entget mainDict)

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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