asos2000 Posted August 20, 2009 Share Posted August 20, 2009 I recived files when open any one of those files i found a lisp file called acad created in the same folder and some commands not working. What is this? and How can I stop this? Regards Quote Link to comment Share on other sites More sharing options...
bonehead411 Posted August 20, 2009 Share Posted August 20, 2009 I would suggest you post the contents of the lisp file, that way one of our lisp specialists can take a look and may be able to determine what it is, and suggest possible reasons for why this happens. Quote Link to comment Share on other sites More sharing options...
asos2000 Posted August 20, 2009 Author Share Posted August 20, 2009 Attached the dwg file and the lisp Podium Levels dwg.zip Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 20, 2009 Share Posted August 20, 2009 Yes, there is a function in the LISP that writes the file. Quote Link to comment Share on other sites More sharing options...
asos2000 Posted August 20, 2009 Author Share Posted August 20, 2009 How to stop this function? and restore all functions which the lisp changed? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 20, 2009 Share Posted August 20, 2009 Haha - it actually looks like a prank to me They have undefined the attedit command and redefined it so that it will never be able to edit the attributes. And the xref and xbind just activate the insert command... and Burst is messed up as well. Someone doesn't like you :wink: Quote Link to comment Share on other sites More sharing options...
asos2000 Posted August 20, 2009 Author Share Posted August 20, 2009 hahah yes that what habbens I cant open xref or edit but how can i stop that make xref active Any way im going to kill this man Quote Link to comment Share on other sites More sharing options...
alanjt Posted August 20, 2009 Share Posted August 20, 2009 that is the strangest. it's even got a bunch of subroutines from v14 bonus tools Quote Link to comment Share on other sites More sharing options...
asos2000 Posted August 30, 2009 Author Share Posted August 30, 2009 Help plz all my files are infected with this lisp Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 30, 2009 Share Posted August 30, 2009 I suppose redefining the S::STARTUP function should rectify things. :wink: Quote Link to comment Share on other sites More sharing options...
Cad64 Posted August 30, 2009 Share Posted August 30, 2009 Haha - it actually looks like a prank to me They have undefined the attedit command and redefined it so that it will never be able to edit the attributes. And the xref and xbind just activate the insert command... and Burst is messed up as well. Someone doesn't like you :wink: Could it be that this is just a way of protecting drawing files from being edited? He did say he received these files from someone else. Asos, you need to contact the person who sent you these files and ask him what this is all about. Ask him why this lisp is redefining commands and tell him that you are unable to work with his files because of it. This should always be your first course of action when receiving files from an outside source. If you're having problems with someone's files, pick up the phone and call them and work it out. It's always going to be faster and easier to do this with the person who created the files, rather than coming to the forum and going back and forth with us, trying to speculate on why this or that is happening. Quote Link to comment Share on other sites More sharing options...
alanjt Posted August 31, 2009 Share Posted August 31, 2009 you also don't have to load the lisp file to work wit the dwg. Quote Link to comment Share on other sites More sharing options...
asos2000 Posted September 1, 2009 Author Share Posted September 1, 2009 i am not loding the lisp but its created automatically when open any *.dwg file Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 1, 2009 Share Posted September 1, 2009 i am not loding the lisp but its created automatically when open any *.dwg file That is because upon the first loading, it redefined the S::STARTUP function (which runs everytime you start up AutoCAD), hence it will automatically run. You will need to redefine your S::STARTUP function in AutoCAD to prevent it running each time. Quote Link to comment Share on other sites More sharing options...
alanjt Posted September 1, 2009 Share Posted September 1, 2009 i am not loding the lisp but its created automatically when open any *.dwg file autocad will automatically load the first acad.lsp file it finds. you have to get it out of any support path, or location of file you are opening. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 1, 2009 Share Posted September 1, 2009 I would advise this: Delete all instances of the LISP and all instances of the ACAD.lsp that it has created. Redefine the S::Startup function. i.e. (defun s::startup ( ) (princ)) Lee Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 1, 2009 Share Posted September 1, 2009 More info on the S::STARTUP function here http://rkmcswain.blogspot.com/2008/08/sstartup-function.html Quote Link to comment Share on other sites More sharing options...
alanjt Posted September 2, 2009 Share Posted September 2, 2009 I would advise this: Delete all instances of the LISP and all instances of the ACAD.lsp that it has created. Redefine the S::Startup function. i.e. (defun s::startup ( ) (princ)) Lee the S::STARTUP has to be defined each time, at startup. you don't need to reset it, just get rid of the crap routine and all the created acad.lsp files by default, it's nil. load something with the s::startup, then restart autocad and check it. !s::startup will return nil Quote Link to comment Share on other sites More sharing options...
calvinn1234 Posted June 15, 2011 Share Posted June 15, 2011 how the s::startup work can u help me step by step please Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 15, 2011 Share Posted June 15, 2011 how the s::startup work can u help me step by step please From your AutoCAD Help file: "You can define an S::STARTUP function to perform any needed setup operations after the drawing is initialized." Refer to Help for further information. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.