Get line component of Structure label (c#)

Get line component of Structure label (c#)

Alexey.Terno
Advocate Advocate
584 Views
1 Reply
Message 1 of 2

Get line component of Structure label (c#)

Alexey.Terno
Advocate
Advocate

Can I get line component of Structure plan label?

Now the label looks like in the picture 1 - line intersects circle.

I need to trim the line so that it reaches the circle and does not extend inside, like in picture 2.

I couldn't do it using the label settings. Maybe I can programmatically change the position of the starting point of the line?

585 Views
1 Reply
Reply (1)
Message 2 of 2

Jeff_M
Consultant
Consultant

Yes, you can get the line components of a label style:

ObjectIdCollection lineIds = style.GetComponents(LabelStyleComponentType.Line);

 

However, if you can't get the desired result using the label style composer I doubt you will have any better luck doing it in code. 

Can you post a small dwg with that label?

Jeff_M, also a frequent Swamper
EESignature
0 Likes