Load Linetypes w/ Vlisp
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Load Linetypes w/ Vlisp

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Jonathan
Guest





Posted: Tue Mar 29, 2005 7:38 pm    Post subject: Load Linetypes w/ Vlisp Reply with quote

To the Experts:

How does one load linetypes from a *.lin file, with visual lisp?

Thanks.

Back to top
Adesu



Joined: 20 Jul 2005
Posts: 31

Posted: Mon Oct 17, 2005 6:42 am    Post subject: Re: Load Linetypes w/ Vlisp Reply with quote

Jonathan wrote:
To the Experts:

How does one load linetypes from a *.lin file, with visual lisp?

Thanks.


Hi Jonathan,are you want load linetype,here my code to load alls load

Code:

; ltl is stand for line type load
;        Design by ade suharna <mteybid@yuasabattery.co.id>
;        14 April 2005
;        Program no.227/04/2005
;        Edit by Adesu  30/09/2005      1).
;                       17/10/2005      2).
(defun c:ltl (/ lin)
  (setq lin "C:/Program Files/AutoCAD 2004/Support/acad.lin")  ; for acad 2004
  ;(setq lin "c:/Auto Cad 2000/support/acad.lin")              ; for acad 2000
  (setq ltyp "dashed")                                         ; 2).
  (if                                                          ; 1).
    (not (tblsearch "ltype" ltyp))                             ; 1).
    (command "_linetype" "l" "*" lin "")
    (alert (strcat "\nStyle name of " ltyp " still exist"))    ; 1).
    )
  (princ)
  )



Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB