Below is a portion of a lisp command that we are using. The lisp command works fine. The issue is that one of our users is having trouble with the lisp command. When the lisp is run it deletes a block and reinserts it. It then runs an -attedit on that block to delete a portion of the text. On one persons computer it does not delete the portion of text. If I hit F2 I can see that the routine ran correctly and in the F2 activity history it indicates the function was done properly to delete the portion of text in quesiton. But it does not do it. Can anyone tell me why? Is it a variable? Lisp is below:
(setq ss_2 (ssget "x"
'((2 . "item")))
)
(command "erase" ss_2 "")
(setq DN (getvar "DWGNAME"))
(command "insert" "item" "0,0" "1" "1" "0" DN "qsave")
(command "-attedit" "n" "n" "item" "" "" ".dwg" "")
This is an auto update file command that inserts a block with the drawing file name. I then use -attedit to edit the text to remove the .dwg extension in the text block. Why on one persons computer would this not work? (the last lisp line is the line in question, after entering value to be changed ".dwg", I replace it with nothing "". Why is this not working on one persons PC? :realmad:
thanks
Josh