Jump to content

Recommended Posts

Posted

How does one load page setups using lisp from a network stored dwt file??

Posted

This is what I came up with but it doesn't recognise the file.

 

Any ideas??

 

(defun c:A1 ()
(command"-psetupin" "T://CCC2009.dwg" "A1")
(command "-plot" "n" "" "A1" "" "n" "y" "n")
(command "regenall")
(princ)
)

 

The template is attached.

CCC 2009.dwg

Posted

Looks like the dwg itself contains a spoace or underscore in its title. IN the lisp it has not. Don't have time to try it now, sorry. But maybe it can help...

Posted

I got it working to load the page setup but how do i deal with one already existing. Do i delete all page setups or check for its existence?? How do i do either??

 

Thanks

Posted
I got it working to load the page setup but how do i deal with one already existing. Do i delete all page setups or check for its existence?? How do i do either??

 

Thanks

The subroutine in the link I posted will show you how to deal with that. :)

Posted

Thanks Alan thah did the job nicely!!!

 

Just didn't spot it before.

 

I'm in headless chicken territory at the moment!!!!!

Posted
Thanks Alan thah did the job nicely!!!

 

Just didn't spot it before.

 

I'm in headless chicken territory at the moment!!!!!

 

:) Glad it's working.

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