Autodesk Inventor Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Tessellate TextBox contents into Geometry.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I am using Inventor 2013 API for an application that imports Solid bodies and Sketches from Inventor parts.
Observed that when we import sketch entities, the Text object simply returns 4 lines representing its bounding box. What I want to do here, is to get the formated text as a collection of geometric entities. (lines, splines, arcs)
Is there any API available to "explode" text into entities, or may be a cleaner method that simply returns tesselation of formated text?
Re: Tessellate TextBox contents into Geometry.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Unfortunately there isn't an API that could directly tesselate a text entity.
You can access the text content and process it using your own logic or a third-party API able to tesselate text (AutoCAD can do that for example). Another suggestion would be to create a very thin extrusion based on a sketch containing exactly the text to tesselate and then you would be able to use CalculateFacets on the SurfaceBody generated by this extrusion.
I hope it helps.
Regards,
Philippe.
Philippe Leefsma
Developer Technical Services
Autodesk Developer Network
