Selecting objects with specific extended data in a script (lisp or dynamo)

Selecting objects with specific extended data in a script (lisp or dynamo)

filip
Participant Participant
2,406 Views
14 Replies
Message 1 of 15

Selecting objects with specific extended data in a script (lisp or dynamo)

filip
Participant
Participant

I do not find the extended data of an object bij selection with (car (entsel)) in lisp

Is there a way to view the extended data and modify it  ?

I have no experience with Dynamo-scripts, but maybe there allreday exist a script for these issue.

0 Likes
Accepted solutions (1)
2,407 Views
14 Replies
Replies (14)
Message 2 of 15

hosneyalaa
Advisor
Advisor

@filip 

Can you attached example drawing

0 Likes
Message 3 of 15

filip
Participant
Participant

Hello,

 

In attach you find a dwg with many objects where we add extended data properties.

For instance :

- tree (Block "Boom_1") has xdata "Bouwheer" (= the builder) or "Type" (= sort of tree)

- haches, lines, pipes and structures have also extra properties according to make tables of quantities

- in the xref 'IMKL' you can see the location of the gas pipes, waterpipes, cables, ... of different compagnies with extended data of the sort of cable or pipe.

 

I 'm interested in a script that can select objects by property of the extended data and can modify the extended data. I looked in the database (with a dxf-file, search in the file by entityname or by vlax-ename) but i didn't find the extended data-properties. 

See also https://help.autodesk.com/view/CIV3D/2024/ENU/?guid=GUID-A94BC605-5517-437F-A6FE-D3EB8116A01A

0 Likes
Message 4 of 15

hosneyalaa
Advisor
Advisor

hi

I did not find  Xdata 
do you mean  property sets

 

 

0.JPG

0 Likes
Message 5 of 15

filip
Participant
Participant

Yes, where can I find these properties in the database ?

0 Likes
Message 6 of 15

hosneyalaa
Advisor
Advisor
0 Likes
Message 7 of 15

filip
Participant
Participant

Thanks for the script, it works.

I'm still interested how to manage the property sets in lisp, because I don't understand why I can't see the group code -3 of the entity. Is the desciption of the help-page https://help.autodesk.com/view/CIV3D/2024/ENU/?guid=GUID-A94BC605-5517-437F-A6FE-D3EB8116A01A mislea...

 

0 Likes
Message 8 of 15

hosneyalaa
Advisor
Advisor

@filip 

Can you reading this

Until you are  understand Extended Entity Data

 

 

 

https://www.afralisp.net/autolisp/tutorials/extended-entity-data-part-1.php

0 Likes
Message 9 of 15

filip
Participant
Participant

Is the conclusion that "extended entity data" (see example Afralisp) and the extended data of property sets are two different things ? That's really confusing !

0 Likes
Message 10 of 15

hosneyalaa
Advisor
Advisor
0 Likes
Message 11 of 15

filip
Participant
Participant

Yes, that's exactly what we do in our drawing that I send you : we make our own data-fields.

But why we can't see them in the list of entity groupcodes ?

I was thinking that the 330 or 360-codes maybe hide these data

In AutoCAD Help I found this :  https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-51B921F2-16CA-4948-AC75-196198DD1796

0 Likes
Message 12 of 15

Jeff_M
Consultant
Consultant
Accepted solution

@filip wrote:

Yes, that's exactly what we do in our drawing that I send you : we make our own data-fields.

But why we can't see them in the list of entity groupcodes ?

Because property sets are an Architecture based feature and is not available for Civil3D/AutoCAD users in lisp. It is available in .NET, which makes it available in Dynamo.

Jeff_M, also a frequent Swamper
EESignature
Message 13 of 15

filip
Participant
Participant

Thank you, Jef !

0 Likes
Message 14 of 15

ahuygen
Participant
Participant

Project Explorer can be used to access all property set data in dwg . Also filter and select them. like a data table tool.

0 Likes
Message 15 of 15

willem.creffierKCWFB
Advocate
Advocate

Hi @filip 
yes, reading the values of extended data seems useful, but apparently it only exists for Map features or Cogo Points.

 

Did you proceed on this?


willemcreffierKCWFB_0-1735820481606.png

 


Kind regards,

Willem

0 Likes