How do I extract the geometry of a text entity (OdDbText, OdDbMText)?

  1. FAQ
  2. »
  3. Text and Font Questions

To obtain geometric representation of OdDbText and OdDbMText outline, take a look at the example ExTxtExp located in Drawing/Examples/ExCommands. When TtfPolyDrawMode is set to false, the vectorized output for every text entity will be sent to TextContourExplode::shellProc method that constructs OdDbPolyline objects from text outline geometry. You can test this example command in OdaMfcApp by typing "TxtExp" and selecting any OdDbText or OdDbMText objects.