TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Bob Wahr on May 30, 2008, 10:46:36 AM
-
What I want
Sub TEST()
Dim nomen As String
Dim adicio As String
nomen = ThisDrawing.GetVariable("LOGINNAME")
adicio = "p:\acad\drafters\" & nomen & "\support"
End Sub
What isn't working (defun c:TETHT()
(setq strname (getvar "LOGINNAME"))
(addsupportpath "P:\\acad\\drafters\\"strname"\\support" nil) ;with or without spaces or &s
(princ))
-
I think strcat is what you are looking for
(defun c:TETHT()
(setq strname (getvar "LOGINNAME"))
(addsupportpath (strcat "P:\\acad\\drafters\\" strname "\\support" ) nil) ;with or without spaces or &s
(princ))
-
That's the one. Thanks.
Trying to get back into some lisp after WTF too many years off. Should probably find a "Autolisp for freaking morons" book.
-
we have a forum dedicated to that ... :D
-
A little gem i found a little bit ago i think is absolute genius!
http://www.theswamp.org/~stig/string#4.2.1
-
That's the one. Thanks.
Trying to get back into some lisp after WTF too many years off. Should probably find a "Autolisp for freaking morons" book.
My first ABC lisp book
http://ronleigh.info/autolisp/index.htm