MajorTom Posted February 24, 2020 Posted February 24, 2020 Is there anyone who can help me? When I use the wblock command in Autolisp, I want to be able to choose where to save the block. This is necessary to be able to record in a different place each time I use it. Thanks in advance. Quote
rkmcswain Posted February 24, 2020 Posted February 24, 2020 This works fine for me, using 2019, as long as "c:\myfolder" exists. (vl-cmdf "._wblock" "C:/myfolder/output.dwg" "*") Quote
MajorTom Posted February 24, 2020 Author Posted February 24, 2020 17 minutes ago, rkmcswain said: This works fine for me, using 2019, as long as "c:\myfolder" exists. (vl-cmdf "._wblock" "C:/myfolder/output.dwg" "*") thank you rkmcswain but I something wrong 1- I don't need all objects so I need basepoint and selection set 2- the saving path have to be able to change so I need path window for choose path Quote
MajorTom Posted February 25, 2020 Author Posted February 25, 2020 (defun c:ww() (command "wblock" )) now when I run this code acad want a filename if I just put the enter acad opening windows explorer to find a file for save. after that acad wants a base point and after that wants selected objects. How can I make this steps in lisp like code below. Quote (defun c:ww ()(setq pt (getpoint "BasePoint") ss (ssget))(command "wblock" "" pt ss)) 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.