Jump to content

generate 3 viewports and align UCS


Recommended Posts

Posted

Hello all:

I use a code that generates 3 viewports

image.thumb.png.98465a688c4dd5032ab7721f097968b3.png

I would like the chain to be able to generate them in this way

image.thumb.png.2f3a7541e3273bc73d8e72538ee1797e.png

 

that the second viewport is a side view

and the third viewport, front view

but that in the second and third viewport the UCS is aligned to the view

 

as in the second image

If there's any way, I'd appreciate your advice or comments

 

here my code

 

(DEFUN C:V3 () (command "_MODEL" "_-vports" "3" "l" "'_.zoom" "_e" "_-VIEW" "_SWISO"))

thanks

 

 

 

 

 

 

 

 

 

 

 

Posted

Ok its simple to use vpoint to set your view angles, code is part of a view choice lisp.

 

(if (= look "R")(command-s "-vpoint" "1,0,0"))
(if (= look "L")(command-s "-vpoint" "-1,0,0"))
(if (= look "F")(command-s "-vpoint" "0,-1,0"))
(if (= look "B")(command-s "-vpoint" "0,1,0"))
(if (= look "P")(command-s "-vpoint" "0,0,1"))
(if (= look "3")(command "_.vpoint" "-1,-1,1"))

 

If you want auto 3 viewports then you need to ask what scale and pick say a point in model so the views can be based around that point. I would use a layout with a title block.

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