I'm extracting element information from various kinds of element that contain text. I want to describe the element (e.g. Note Element, Text Element, Text Node Element).
Element.Description does what I want, except for TextElement. With TextElement, the description includes the element type and its text content...
Element.Description
TextElement
I don't want the text content in the element description. Note that a TextNodeElement doesn't add the text content to its description; why does TextElement perform that additional unwanted step?
TextNodeElement
How can I get just the description of a TextElement, without additional information?
Jon Summers said: I want to describe the element (e.g. Note Element, Text Element, Text Node Element).
Can el.TypeName() provide you with an alternate description or what is needed?
Answer Verified By: Jon Summers
Robert Hook said:Can el.TypeName()
It's exactly what I thought about :-)
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point