Message 1 of 6
Custom entity with texts

Not applicable
12-15-2015
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Colleagues,
I have a problem with my custom entity which should show either the texts. The object "AcDbMText" is used for this.
void MyCustomEntity::subViewportDraw (AcGiViewportDraw *pVd)
{
AcDbMText myText;
// initialize of myText
pVd->rawGeometry ()->draw (&myText);
}
The Problem:
If user change the visual style from "2D Wireframe" to another -> the texts have disappeared.
In debug mode: the function "draw" returns "false" in this case.
What I have to use for text?
The Autodesk application is: AutoCAD ARCHITECTURE 2015.