How do I get the definition or code of a line type that is loaded in a .dwg? I have a lisp that loads layers and line types, but the routine stops in a new drawing, because the DEMO line type is not in the acad.lin file.
Solved! Go to Solution.
Put something like "extract linetype definition" or similar wording into the "Search the Community" window, and you'll find several threads on the subject, with links to routines that do that.
Thanks Kent1Cooper, I found “linout.vlx” and used (load " linout.vlx ") to load it and “linout” to execute the routine and it worked perfectly to what I needed which was to find - *DEMO,DEMO ---- / ---- / ---- / ----
A,0.125,-0.02,["/",Standard,s=0.1,r=0,x=-0.05,y=-0.05],-0.015
Hi @Anonymous,
How about something like this
(setq lstyleinfo (tblsearch "Ltype" "dashed"))
(if (= lstyleinfo nil)(command "linetype" "load" "dashed" "acad.lin" ""))
Please select the Accept as Solution button if my post solves your issue or answers your question.
The AutoCAD Forum won’t let me attach the file - linout.vlx, so if someone needs the file just save it and change the extention to .vlx or you can get it here - https://www.cadstudio.cz/en/download.asp?file=LinOut
Can't find what you're looking for? Ask the community or share your knowledge.