.NET

Reply
Active Contributor
AdriDicri
Posts: 33
Registered: ‎09-23-2011
Message 1 of 7 (2,375 Views)
Accepted Solution

[.net] How to convert text into polylines?

2375 Views, 6 Replies
10-10-2011 06:39 AM

Hi everyone !

 

For my project, i'd like to convert Mtext into polylines (or lines or other...) with vb.net (why? because my compagny is working with laser, and laser can't write text like this, we have to convert it into lines/arcs/splines etc...)

 

Someone have an idea ? How can I do this? I've read something about saving the text into a sfx file but don't seems to work.

 

Thanks for your help.

 

(and sorry for my english, french is my mother tongue)

 

Adri Dicri

Valued Contributor
jleonard2500
Posts: 80
Registered: ‎04-14-2011
Message 2 of 7 (2,371 Views)

Re: [.net] How to convert text into polylines?

10-10-2011 06:56 AM in reply to: AdriDicri

Express tools, "explode text". Converts selected text to 2D polylines.

Active Contributor
AdriDicri
Posts: 33
Registered: ‎09-23-2011
Message 3 of 7 (2,369 Views)

Re: [.net] How to convert text into polylines?

10-10-2011 06:58 AM in reply to: jleonard2500

Can I use the express tools in a vb.net addon?


Thanks :smileywink:

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 4 of 7 (2,364 Views)

Re: [.net] How to convert text into polylines?

10-10-2011 07:18 AM in reply to: AdriDicri

The lisp function is located in
C:\Program Files\AutoCAD 2010\Express\txtexp.lsp

look at
AutoCAD® .NET: Using .NET With Your LISP Applications
Wayne Brill – Autodesk     

http://au.autodesk.com/?nd=material&session_material_id=5312

 

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
Board Manager
StephenPreston
Posts: 362
Registered: ‎05-22-2006
Message 5 of 7 (2,302 Views)

Re: [.net] How to convert text into polylines?

10-13-2011 07:59 AM in reply to: arcticad

There's also an app on the AutoCAD 2012 Exchange store - think the name is 'Text2Geometry'. I'm not on my work computer right now, so can't check, but I believe its a free download, and I believe its a .NET app. If you contact the author he may be willing to share his algorithm with you.

Cheers,

Stephen Preston
Autodesk Developer Network
Distinguished Contributor
SEANT61
Posts: 122
Registered: ‎09-23-2008
Message 6 of 7 (2,269 Views)

Re: [.net] How to convert text into polylines?

10-14-2011 12:10 AM in reply to: AdriDicri

Hey Stephen . . . . thanks for the promo.

 

Adri Dicri, The source for the Text2Geometry app is already available here (You may have to register to view the link – registering, though, is beneficial well beyond the value of this one link):

 

http://www.theswamp.org/index.php?topic=31435

 

I should point out that the routine only processes text from userform input.  I plan on addressing database resident Text/Mtext when some free time presents itself. 

 

Incidentally, all non-linear geometry produced by the app is Spline/Bezier based.  I would be interested to hear how that interacts with your Laser’s CNC processing.

Active Contributor
ksmith84
Posts: 39
Registered: ‎05-21-2013
Message 7 of 7 (1,111 Views)

Re: [.net] How to convert text into polylines?

05-22-2013 09:21 AM in reply to: AdriDicri

I have recently inquired about the very same thing, similar at least.  I needed a tool with variation to "txtexp" from Express tools, but it did not quite give the outlines as efficiently as was needed (to save on drawing time).

 

Research online led me to "Text to Geometry" (command: t2g) which works with newer versions of Autocad.

I've not been able to try it out myself due to having Mechanical 2009 only.

 

The link is:

http://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aText-to-Ge...

 

 

Happy drafting! :smileyhappy:


~¤~
^C^CMoonwalk

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community