GeneralDimension API show leader

GeneralDimension API show leader

Josh_Hunt
Advocate Advocate
271 Views
1 Reply
Message 1 of 2

GeneralDimension API show leader

Josh_Hunt
Advocate
Advocate

Can someone confirm the public API (2020) cannot control the leader of a GeneralDimension?

 

My real goal is to use this on a ChainDimensionSet when the dimension is too small but I feel the real answer would be in the GeneralDimension.

Josh_Hunt_0-1651844140874.png

 

I found this but it's read only and the underscore makes me think it is public by mistake.

Josh_Hunt_1-1651844280813.png

 

 

Josh Hunt
0 Likes
Accepted solutions (1)
272 Views
1 Reply
Reply (1)
Message 2 of 2

Josh_Hunt
Advocate
Advocate
Accepted solution

A colleague helped me I solve it.  A ChainDimensionSet.Members is an enumerator of GeneralDimension but I need to cast them to a list of LinearGeneralDimension.

 

var linearDim = chainDimSet.Members.OfType<LinearGeneralDimension>().ElementAt(index);
linearDim.ShowLeader = true;
linearDim.Text.Origin = NEWTEXTPOINT;

 

Josh Hunt
0 Likes