hemuni Posted July 27, 2011 Share Posted July 27, 2011 I have a small routine that switches between layouts by selecting them from a list in a dialog: GLAY.LSP It has a toggle and a button that will trigger a zoom all, to be used in case not all of the layout is visible. It works just fine as is, but I have to hide the dialog in order to invoke the zoom command and I would like to skip that if possible. I seem to remember being able to do something like this years ago, but can't remember how. Does anybody have clever way of doing a zoom all without hiding the loaded dialog first, maybe through vlisp? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 27, 2011 Share Posted July 27, 2011 Not without using OpenDCL. Standard DCL can only create modal dialogs, for the functionality you are looking for the dialog needs to be modeless. Quote Link to comment Share on other sites More sharing options...
hemuni Posted July 27, 2011 Author Share Posted July 27, 2011 Not without using OpenDCL. Standard DCL can only create modal dialogs, for the functionality you are looking for the dialog needs to be modeless. Bummer Quote Link to comment Share on other sites More sharing options...
Guest kruuger Posted July 27, 2011 Share Posted July 27, 2011 (action_tile "zoom" "(vla-ZoomAll (vlax-Get-Acad-Object))") is this what you want ? k. Quote Link to comment Share on other sites More sharing options...
hemuni Posted July 27, 2011 Author Share Posted July 27, 2011 (edited) is this what you want ?k. Yes I think that's it exactly. Will try it out in the morning. Thanks kruuger! It's now implemented and working perfectly. Thanks again kruuger!! Edited July 28, 2011 by hemuni 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.