Jump to content

Zoom extents before exporting layout


RepCad

Recommended Posts

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 ? 

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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