Jump to content

Recommended Posts

Posted

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.

Posted

This works fine for me, using 2019, as long as "c:\myfolder" exists.

 

(vl-cmdf "._wblock" "C:/myfolder/output.dwg" "*")

 

Posted
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

Posted

(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)
)

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...