New CADforum look launched.
Over 1.080.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Over 1.080.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Discussion forum
?CAD discussions, advices, exchange of experience
Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
converting lines to text |
Post Reply |
Author | |
jolasamuel
Newbie Joined: 27.Jun.2023 Location: Nigeria Using: autocad2019 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 24.Oct.2024 at 16:30 |
hello
i have some text made of the combination of horizontal lines and i want to convert them from lines to normal AutoCAD text. how do i go about this, any lisp or command to use? I have attached a part I have attached a part of the text below. Edited by jolasamuel - 24.Oct.2024 at 16:38 |
|
rahul7civil
Newbie Joined: 03.Jun.2023 Location: India Using: AutoCAD LT Status: Offline Points: 24 |
Post Options
Thanks(1)
|
Hi there,
Find your drawing in that discussion forum is a research project. You can get the poly line into the text is a bit more complicated using automatic language. If you are doing in the manual is better than automatic functions. Thanks
|
|
Rahul Banerjee
|
|
Vladimir Michl
Moderator Group Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2062 |
Post Options
Thanks(1)
|
It would be quite complicated in LISP. But you can try to export the lines to PDF and then bring back the PDF to AutoCAD with the option "Convert text" enabled. It should recognize real texts. Or the OCR function in AutoCAD Raster Design can do that.
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
Kent Cooper
Senior Member Joined: 12.Mar.2013 Location: United States Using: AutoCAD2020, 2023 Status: Offline Points: 683 |
Post Options
Thanks(1)
|
Never mind complicated -- I wonder whether it would even be possible, but I doubt it. How AutoLisp could determine which Polylines belong together to represent a letter is beyond my comprehension. They're not affiliated with each other in any meaningful way, for example, the red ones along the top here: are sequential in the drawing order, so looking at sequential series of Polylines is never going to identify letter groupings. Proximity could not be used, because from many starting Polylines to measure from, there are others that are part of different letters closer than some of those that are part of the same letter. And here are a few of the configurations of (arbitrarily) M and E: Does it take 57 Polylines to represent an M, or 52? 11 to represent an E, or 14, or 15? The second and third E's look like they might be duplicates, but their longer horizontal parts are of different lengths. The third one has the bottom leg longer than the top arm, though those are the same lengths in the others. Even if it were possible to determine that the upper left clump of Polylines there belong together to represent a letter, I cannot imagine by what functions AutoLisp could possibly decide that it's an "M". But I'd be interested in anyone's thoughts on how that might be determinable.
|
|
philippe JOSEPH
Senior Member Joined: 14.Mar.2011 Location: France Using: AutoCAD Mechanical 2017 Status: Offline Points: 1481 |
Post Options
Thanks(1)
|
Yes an OCR would eventually recognize only true type fonts and always leads to be controlled in each written word.
Edited by philippe JOSEPH - 08.Nov.2024 at 08:03 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,404 seconds.