.NET

.NET

Reply
Active Contributor
AdriDicri
Posts: 34
Registered: ‎09-23-2011
Message 1 of 7 (3,020 Views)
Accepted Solution

[.net] How to convert text into polylines?

3020 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

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

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

 

 

Valued Contributor
jleonard2500
Posts: 80
Registered: ‎04-14-2011
Message 2 of 7 (3,015 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: 34
Registered: ‎09-23-2011
Message 3 of 7 (3,013 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,286
Registered: ‎06-21-2004
Message 4 of 7 (3,008 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))
ADN Support Specialist
StephenPreston
Posts: 429
Registered: ‎05-22-2006
Message 5 of 7 (2,946 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: 137
Registered: ‎09-23-2008
Message 6 of 7 (2,913 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.

Valued Contributor
ksmith84
Posts: 52
Registered: ‎05-21-2013
Message 7 of 7 (1,755 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.