mit20 Posted November 26, 2014 Share Posted November 26, 2014 Hello, I would like to prepare kind of "Final Setup" program. Something that would cleanup the drawing and set layouts for printing. I am wondering if somebody could help me with this. This is pretty simple but I cant get it working.. (I am no programmer of any kind) I prepared rough lisp working (attached). I would like to be able use toggles to decite which function will be activated (Audit, purge, overkill, layout setup). I would also like it to be in one file, without separate .dcl file. Partial dcl. file attached. Thank you in advance. Regards. FinalSetupTool.lsp FinalSetup.dcl Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 27, 2014 Share Posted November 27, 2014 Well, if you're using LISP, you're relegated to using a separate .DCL file AFAIK... Perhaps compiling to .FAS or .VLX resolves this? *not sure* As for setting the layouts, look for one of my posts that includes a link and an example code snippet with vla-SetActivePageSetup function. Cheers Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 27, 2014 Share Posted November 27, 2014 The dcl is not being used ? You can certainly add a Do you want To ? as steps in the program make the which is Nil as answer to a Getstring to keep going I would put qsave last rather than do for each layout each time. (setq ans (Getstring "\nDo Purge for yes press <Cr> or any key for No")) (if (= ans nil) (Command "-purge" "a" "n") ) Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 27, 2014 Share Posted November 27, 2014 Might as well purge those Registry Applications automagically as well. https://apps.exchange.autodesk.com/ACD/en/Detail/Index?id=appstore.exchange.autodesk.com%3aappautopurgeregforautocad00ae_windows32and64%3aen Quote Link to comment Share on other sites More sharing options...
mit20 Posted November 28, 2014 Author Share Posted November 28, 2014 Thanks for your reply. I'll keep working on this one. It's pretty hard to convince people to keep drawing in order.. Auto Reg. purge by BlackBox seems usefull. I'll be using it. Cheers Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 28, 2014 Share Posted November 28, 2014 Thanks for your reply. I'll keep working on this one. It's pretty hard to convince people to keep drawing in order.. Auto Reg. purge by BlackBox seems usefull. I'll be using it. The key is to *try* and make it easier for user(s) to adhere to the standard, than to do their own thing... Event-driven tools like the one linked above have greatly helped here. I'm flattered that you find AutoPurgeReg useful. Cheers Quote Link to comment Share on other sites More sharing options...
mit20 Posted November 29, 2014 Author Share Posted November 29, 2014 Just and update. Apparently someboty else thought about same stuff some time ago. (Lisp attached). This is for page setup only. I would add drawing frame block insertion and also cleanup tools. If somebody knows how do do it, this would be nice, at this moment the code is to much for me. I have also found BlackBox App (also attached) but I cant get it running. I have ACad 2015. Cheers LayoutTools.dcl LayoutTools.lsp bbox_AcPageSetup.bundle.zip Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 30, 2014 Share Posted November 30, 2014 Just and update. Apparently someboty else thought about same stuff some time ago. (Lisp attached). This is for page setup only. I would add drawing frame block insertion and also cleanup tools. If somebody knows how do do it, this would be nice, at this moment the code is to much for me. I have also found BlackBox App (also attached) but I cant get it running. I have ACad 2015. Cheers Rather than posting my app, please provide a link to where you found it, as that post included a great deal of related information and even sample code. Cheers Quote Link to comment Share on other sites More sharing options...
asos2000 Posted November 30, 2014 Share Posted November 30, 2014 Rather than posting my app, please provide a link to where you found it, as that post included a great deal of related information and even sample code. Cheers Could you please provide us with the link? Quote Link to comment Share on other sites More sharing options...
BlackBox Posted November 30, 2014 Share Posted November 30, 2014 (edited) Could you please provide us with the link? Here is where I originally posted my vla-SetActivePageSetup plug-in: http://forums.augi.com/showthread.php?80461-Page-Setup-Manager&p=1219546&viewfull=1#post1219546 Edited November 30, 2014 by BlackBox Quote Link to comment Share on other sites More sharing options...
mit20 Posted November 30, 2014 Author Share Posted November 30, 2014 Yes, I think that's where I found it. Cheers Quote Link to comment Share on other sites More sharing options...
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.