RepCad Posted September 18, 2022 Share Posted September 18, 2022 Helli everyone, I'm using this code to move all object to a specific point in layout and then exporting layout to dwg : (command "Move" "ALL" "" p1 p2) (command "zoom" "e") (setq layoutname (strcat (getvar "dwgprefix") "test" ".dwg" ) ) (command "exportlayout" layoutname) it works fine but the exported file is not zoom extents after opening it. drawing always show 0.0 on opening. Can someone tell me what the problem is ? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 18, 2022 Share Posted September 18, 2022 You may need a (command "Pspace") to ensure not in model space. You can get extmin extmax of a layout as window select then move extmin to 0,0 for consistency I do this setting all layouts in one go. 1 Quote Link to comment Share on other sites More sharing options...
RepCad Posted September 19, 2022 Author Share Posted September 19, 2022 8 hours ago, BIGAL said: You may need a (command "Pspace") to ensure not in model space. You can get extmin extmax of a layout as window select then move extmin to 0,0 for consistency I do this setting all layouts in one go. I always use ExportLayout on "Pspace" mode, As for the second recommendation, I intent to use ExportLayout at the moved location where it's not 0.0. When extmin is on 0.0, everything is okay and the problem appears when that exmin is not 0.0. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 20, 2022 Share Posted September 20, 2022 I use a lisp to plot and use window not layout option, unless something screwy by user works every time. 1 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.