Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get DrawingText object from a DrawingComponent without "Explode" method

Status
Not open for further replies.

CarlosR2022

Electrical
Sep 16, 2010
36
I have a drawing that has its title block as a DrawingComponent object. I would like to get some DrawingTexts. Currently, in order to do this, I have to do myTitleBlock.Explode so the texts can be read. I woudl like to ask if there is a way to get the texts without using `Explode`? Explode is slow and it changes the drawing structure which I would like to avoid.
 
Replies continue below

Recommended for you

Little Cthulhu,

Thanks. Not sure if I do something wrong. I do the count for myTitleBlock.CompRef.Texts.Count --> I got 100, I do myTitleBlock.ExplodeAndSelect --> then I count DrawingText in the Selection --> I got 100. So the number of DrawingText objects is the same for both. However, with the ComRef.Text, I cannot get the DrawingText.Text content.

Unfortunately, my company system does not allow copying or sending the drawing file so I cannot share the file.
 
Are you talking about texts modifiable in each instance? If so, use GetModifiableObject(i) to get them.
 
@Little Cthulhu, thank you very much. That is what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor