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:With TextElement, the description includes the element type and its text content...
This behavior has existed even in V8i GUI (see Element Properties dialog), it's not specific for CONNECT Edition API.
Jon Summers said:How can I get just the description of a TextElement, without additional information?
What exactly do you mean by "description"? Can it be treated as MicroStation "element name"? .... which usually is equal to element type (Line...), but sometimes different (Grouped Hole element is persisted as a cell).
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
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 :-)