how get object id of a line through its label?

how get object id of a line through its label?

mehdi-guida
Advocate Advocate
1,000 Views
4 Replies
Message 1 of 5

how get object id of a line through its label?

mehdi-guida
Advocate
Advocate

Hi I have the object id of the label. how can I get Object id of the line through label object id?

mehdiguida_0-1711061014112.png

 

0 Likes
Accepted solutions (1)
1,001 Views
4 Replies
Replies (4)
Message 2 of 5

Norman_Yuan
Mentor
Mentor

Assume the label you refer to is C3D label, the the label's property "FeatureId" would be the labelled entity's ObjectId.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 5

mehdi-guida
Advocate
Advocate

Thank you so much. It worked .

What about 'line between 2 points label' ?

Is there any Feature Id for virtual line of this type of label?

Do you have any Idea to get start and Ent point of 'line between 2 points label' ?

Thank you

 

0 Likes
Message 4 of 5

hippe013
Advisor
Advisor

You can use the AnchorInfo property of the GeneralSegmentLabel to compute the start and end points.

0 Likes
Message 5 of 5

mehdi-guida
Advocate
Advocate
Accepted solution

Thank you so much my friends

0 Likes