Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

downloading existing linetypes to a file

Status
Not open for further replies.

marize

Structural
Apr 20, 2001
7
Hello.
I am working AutoCAD 2000i.
I would like to download existing linetypes in a particular drawing to a "lin" file.
How is this accomplished?
Thank you for your time.
Marize
 
Replies continue below

Recommended for you

(defun C:ltypes()
;OPEN A TEXT FILE
(setq FileName (strcat (getvar "DWGNAME") ".lin"))
(print Filename)
(setq myFile (open FileName "w"))
(setq myltype (tblnext "LTYPE" T))
(print (cdr (assoc 2 myltype)) myFile)
(while (setq myltype (tblnext "LTYPE"))
(print (cdr (assoc 2 myltype)) myFile)
)
(close myFile)
(print "This function exports only the names of linetypes used in a drawing, into file: ")
(print (findfile FileName))
(print " the descriptions for line types of these names are in the Ascii files Acad.lin, Acadiso.lin etc.")
(princ)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor