fuccaro Posted September 17, 2018 Posted September 17, 2018 I think I got it! In the image you posted I can see that your AutoCAD expects a drawing name but the Lisp sends him a "y". I am at home now, but please locate this line: (command "fileopen" "y" (nth ToOpen DWGlist)) and delete the "y", so that line becomes: (command "fileopen" (nth ToOpen DWGlist)) My AutoCAD asks the user for a confirmation, that's why I wrote that "y". Quote
vudungcom Posted September 18, 2018 Author Posted September 18, 2018 (edited) 6 hours ago, fuccaro said: I think I got it! In the image you posted I can see that your AutoCAD expects a drawing name but the Lisp sends him a "y". I am at home now, but please locate this line: (command "fileopen" "y" (nth ToOpen DWGlist)) and delete the "y", so that line becomes: (command "fileopen" (nth ToOpen DWGlist)) My AutoCAD asks the user for a confirmation, that's why I wrote that "y". I dont know why it asked me about enter number of file to open, i enter "1" then it did not open. Here is my log Edited September 18, 2018 by vudungcom Quote
BIGAL Posted September 18, 2018 Posted September 18, 2018 (edited) The open "Y" is linked to SDI mode if you have only 1 dwg open it will work tested 2018 2019 did not work when I had 3 dwgs open. If you only want 1 path just change the code so path is till defined remove in my version the listbox code. Edited September 18, 2018 by BIGAL Quote
vudungcom Posted September 18, 2018 Author Posted September 18, 2018 yes, i also tested this but still can not. This time mine is 2 and i still can not open Quote
fuccaro Posted September 18, 2018 Posted September 18, 2018 Now this one is confusing; sometimes you need that "y" in the command line and sometime that causes the error. Please enter SDI at the command prompt and tell me returned value Quote
fuccaro Posted September 18, 2018 Posted September 18, 2018 I wish I could stay at your computer. Please put back that "Y" in the "command" function. It should work. Quote
vudungcom Posted September 19, 2018 Author Posted September 19, 2018 @fuccaro the return value is 0, i put back "y" but not work. Thank you Quote
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.