Zoom to on OD value

Zoom to on OD value

Anonymous
Not applicable
306 Views
1 Reply
Message 1 of 2

Zoom to on OD value

Anonymous
Not applicable
I'm writing a lisp that will allow a user to enter a string and then zoon to that entity that has that string as a value in the field from the object data table attached to it. I'm thinking what I need to do is use the ade_odgettables to see if the table is attached to the ent in a selection set, if it is then use ade_odgetfield to see if it matches the string. (all the field types are strings). Then zoom center based on the IP of the entity (block in this case). Is this the way to go about it? Has anyone got anything like this yet? Also is there a way to set a filter when I get my SS (ssget "X" ) to get just the entities that have a certain table attached?
.........Murph
0 Likes
307 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi,

 

The answer is No for the SSGET part of your
question. It is slow to retrieve data from Object Data tables because you
have to look each entity in your drawing. I would perhaps try to use GROUP
instead. You can put an entity in a group where the name of this
group is the value you are looking for.

 

Pierre

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I'm
writing a lisp that will allow a user to enter a string and then zoon to that
entity that has that string as a value in the field from the object data table
attached to it. I'm thinking what I need to do is use the ade_odgettables to
see if the table is attached to the ent in a selection set, if it is then use
ade_odgetfield to see if it matches the string. (all the field types are
strings). Then zoom center based on the IP of the entity (block in this case).
Is this the way to go about it? Has anyone got anything like this yet? Also is
there a way to set a filter when I get my SS (ssget "X" ) to get just the
entities that have a certain table attached?

.........Murph
0 Likes