Message 1 of 4
Selecting and accessing text objects

Not applicable
02-16-2006
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The help file shows how to create a piece of text, then change some of it's properties, such as alignment. It does not show how to select an existing piece of text through code (no user intervention needed).
I have written something that selects some text objects from the modelspace collection based on some search criteria (layer, color, etc.). I have these objects in an array of type AcadEntity, but I can't find a way to access the .alignment or .rotation for these because they are not defined as text objects.
Is there a way to convert an AcadEntity to an AcadText object? Or is there some other way to select text as AcadText objects?
Any help on this would be greatly appreciated.
I have written something that selects some text objects from the modelspace collection based on some search criteria (layer, color, etc.). I have these objects in an array of type AcadEntity, but I can't find a way to access the .alignment or .rotation for these because they are not defined as text objects.
Is there a way to convert an AcadEntity to an AcadText object? Or is there some other way to select text as AcadText objects?
Any help on this would be greatly appreciated.