Search the web
Sign In
New User? Sign Up
cadprog
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
using database in macro in autocad   Message List  
Reply | Forward Message #214 of 299 |
How to export text from a dwg

--- In cadprog@yahoogroups.com, "Tara" <cc_tara@...> wrote:
>
> hi everyone
> if anybody knows about how export text from a dwg file please help
me
>
Dear Tara

copy save this funtion as c:\text2file.lsp file
On Command prompt type
Command: (load "c:\\text2file.lsp") <--'
C:TEXT2FILE

Command: text2file <--'
and select text it will save file on c:\news_text.txt

;-------------------- text2file.lsp ---------------------------------
(defun c:text2file ()
(setq fin (open (strcat "c:\\news_text.txt")"W"))
(if fin
(progn

;(setq alltext_set (ssget "x"'((-4 . "<OR")(0 . "TEXT")
(0 . "MTEXT") (-4 . "OR>")))) ; auto select all text and mtext
(setq alltext_set (ssget)) ; select text one by one

(setq cnt 0)
(repeat (sslength alltext_set)
(setq ent1 (ssname alltext_set cnt))
(setq entlst (entget ent1))
(setq textlin (cdr (assoc 1 entlst)))
(write-line textlin fin)
(setq cnt(1+ cnt))
)
(close fin)
(alert (strcase (strcat "\nText saved in file
c:\\news_text.txt")))
)
)
)
;------------------------------------------------------------------




Wed Jul 11, 2007 5:13 am

rgarudkar
Offline Offline
Send Email Send Email

Forward
Message #214 of 299 |
Expand Messages Author Sort by Date

hi everyone if anybody knows about how export text from a dwg file please help me...
Tara
cc_tara
Offline Send Email
Oct 16, 2006
9:09 am

Export where? ... me...
Andrei Marin
marin_andrei
Offline Send Email
Jul 10, 2007
7:32 am

... me ... Dear Tara copy save this funtion as c:\text2file.lsp file On Command prompt type Command: (load "c:\\text2file.lsp") <--' C:TEXT2FILE Command:...
rgarudkar
Offline Send Email
Jul 11, 2007
5:13 am

what do u want tell me. Best Regards Waiting for Reply Muhammad Ehsan ul Haque Saeed Mobile No.00966-502471823 ... From: rgarudkar <rgarudkar@...> To:...
Engr. Muhammad Ehsan ...
muhamadehsan
Offline Send Email
Jul 11, 2007
7:02 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help