CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 4189
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

converting lines to text

 Post Reply Post Reply
Author
jolasamuel View Drop Down
Newbie
Newbie


Joined: 27.Jun.2023
Location: Nigeria
Using: autocad2019
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote jolasamuel Quote  Post ReplyReply Direct Link To This Post Topic: converting lines to text
    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
Back to Top
rahul7civil View Drop Down
Newbie
Newbie


Joined: 03.Jun.2023
Location: India
Using: AutoCAD LT
Status: Offline
Points: 17
Post Options Post Options   Thanks (1) Thanks(1)   Quote rahul7civil Quote  Post ReplyReply Direct Link To This Post Posted: 07.Nov.2024 at 06:12
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
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2047
Post Options Post Options   Thanks (1) Thanks(1)   Quote Vladimir Michl Quote  Post ReplyReply Direct Link To This Post Posted: 07.Nov.2024 at 07:11
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
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 671
Post Options Post Options   Thanks (1) Thanks(1)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 07.Nov.2024 at 18:17
Originally posted by Vladimir Michl Vladimir Michl wrote:

It would be quite complicated in LISP. ....

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.
Back to Top
philippe JOSEPH View Drop Down
Senior Member
Senior Member


Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1470
Post Options Post Options   Thanks (1) Thanks(1)   Quote philippe JOSEPH Quote  Post ReplyReply Direct Link To This Post Posted: 08.Nov.2024 at 08:02
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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,284 seconds.