woodman78 Posted December 1, 2009 Posted December 1, 2009 How does one load page setups using lisp from a network stored dwt file?? Quote
NBC Posted December 1, 2009 Posted December 1, 2009 This may be of some use - http://www.cadtutor.net/forum/showthread.php?t=11196 Quote
woodman78 Posted December 1, 2009 Author Posted December 1, 2009 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 Quote
alanjt Posted December 1, 2009 Posted December 1, 2009 http://www.cadtutor.net/forum/showpost.php?p=271362&postcount=8 Quote
MarcoW Posted December 1, 2009 Posted December 1, 2009 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... Quote
woodman78 Posted December 1, 2009 Author Posted December 1, 2009 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 Quote
alanjt Posted December 1, 2009 Posted December 1, 2009 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. Quote
woodman78 Posted December 1, 2009 Author Posted December 1, 2009 Thanks Alan thah did the job nicely!!! Just didn't spot it before. I'm in headless chicken territory at the moment!!!!! Quote
alanjt Posted December 1, 2009 Posted December 1, 2009 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. 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.