Jump to content

Recommended Posts

Posted

hi guys have no real experance with lisps but very eger to lern.

 

I need to know if there is any thing out there that could do the following??

 

in the drawing - save as - (same filename)-pl.dwg (same location)

then i need to X-Ref the previous drawing in @ 0,0,0.

and rename the X-Ref as ARCH

 

if there was something out there that even done the first part that would be amazing and would greatly apprecate it.

 

Thanks..

Posted

You can achive that by AutoLISP; this example should get you started:

(vl-load-com)
(setq drawingOld (getvar "DWGNAME")
     drawingNew (strcat (getvar "DWGPREFIX")
                        (vl-filename-base drawingOld)
                        "-pl"
                        (vl-filename-extension drawingOld)))
(command "_SAVEAS" "" drawingNew)

Posted

thanks very much mircea great help

Posted

You’re welcome! Maybe it was better to continue the discussion here instead of starting a new thread since is the same mater.

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...