How to find Block references under LabelStyle?

How to find Block references under LabelStyle?

varshaauti27
Advocate Advocate
328 Views
1 Reply
Message 1 of 2

How to find Block references under LabelStyle?

varshaauti27
Advocate
Advocate

Hi,

How to find block references listed for LabelStyle => Leader => Arrow Head Style

 

varshaauti27_0-1685339094902.png

 

For example, Block name "_DatumBlank" has reference under Leader style "Arrow Head Style" as "Datum Triangle". I am able to find "Arrow Head Style" name but want to find Block references associated with it.

0 Likes
329 Views
1 Reply
Reply (1)
Message 2 of 2

hippe013
Advisor
Advisor

Being that the ArrowHead Styles are all predefined it would be easy enough to create a static dictionary of StyleName to BlockName pairs. 

 

From the GeneralSegmentLabel object we can get the LabelStyle. From there we can get the BaseLeader from the style through the Properties.Leader. From the BaseLeader we can get the PropertyArrowHead object through baseLeader.ArrowHeadStyle. This contains the Predefined style name. I would create a static dictionary of the StyleName to BlockName pairs to get the BlockName. 

 

I do hope that I am understanding your question well enough and that this helps. 

0 Likes