Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DVIEW to ISOMETRIC

12 REPLIES 12
Reply
Message 1 of 13
Anonymous
531 Views, 12 Replies

DVIEW to ISOMETRIC

Greetings,

Okay, I have a saved perspective view with the following values:

Table Name - (0 . VIEW)
Item Name - (2 . PRES)
Flag - (70 . 0)
View Height - (40 . 76.0021)
View Center - (10 0.0 0.0)
View Width - (41 . 103.757)
View Direction - (11 -168.101 336.202 136.784)
View Target - (12 -6.00175 7.99912 31.0)
Lense Length - (42 . 50.0)
Front Clip Plane - (43 . -19.8463)
Rear Clip Plane - (44 . -19.8463)
Twist - (50 . 0.0)
View Mode - (71 . 1)

How can I make a regular isometric view, using (command) to come close to
the same values:

CAMERA, TARGET, VIEWSIZE, VIEWCTR etc

I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects. Number
of REGENS doesn't really matter.

TIA -David
12 REPLIES 12
Message 2 of 13
Anonymous
in reply to: Anonymous

David,

How about view? Are you using R2000+?

(command "_.-view" "_sei");southeast isometric or (command "_.vpoint" "1,-1,1")
(command "_.-view" "_nei");northeast isometric or (command "_.vpoint" "1,1,1")
(command "_.-view" "_swi");southwest isometric or (command "_.vpoint" "-1,-1,1")
(command "_.-view" "_nwi");northwest isometric or (command "_.vpoint" "-1,1,1")

Use cond to compare the current view direction to the closest vpoint isometric
direction and use either view or viewpoint.

Doug

"David Bethel" wrote in message
news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> Greetings,
>
> Okay, I have a saved perspective view with the following values:
>
> Table Name - (0 . VIEW)
> Item Name - (2 . PRES)
> Flag - (70 . 0)
> View Height - (40 . 76.0021)
> View Center - (10 0.0 0.0)
> View Width - (41 . 103.757)
> View Direction - (11 -168.101 336.202 136.784)
> View Target - (12 -6.00175 7.99912 31.0)
> Lense Length - (42 . 50.0)
> Front Clip Plane - (43 . -19.8463)
> Rear Clip Plane - (44 . -19.8463)
> Twist - (50 . 0.0)
> View Mode - (71 . 1)
>
> How can I make a regular isometric view, using (command) to come close to
> the same values:
>
> CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
>
> I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects. Number
> of REGENS doesn't really matter.
>
> TIA -David
>
>
>
Message 3 of 13
Anonymous
in reply to: Anonymous

If I want a 'true' isometric viewpoint, I use the command
VPOINT R 225 35.26438968
That's an approximation.
-doug

"David Bethel" wrote in message
news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> Greetings,
>
> Okay, I have a saved perspective view with the following values:
>
> Table Name - (0 . VIEW)
> Item Name - (2 . PRES)
> Flag - (70 . 0)
> View Height - (40 . 76.0021)
> View Center - (10 0.0 0.0)
> View Width - (41 . 103.757)
> View Direction - (11 -168.101 336.202 136.784)
> View Target - (12 -6.00175 7.99912 31.0)
> Lense Length - (42 . 50.0)
> Front Clip Plane - (43 . -19.8463)
> Rear Clip Plane - (44 . -19.8463)
> Twist - (50 . 0.0)
> View Mode - (71 . 1)
>
> How can I make a regular isometric view, using (command) to come close to
> the same values:
>
> CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
>
> I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects. Number
> of REGENS doesn't really matter.
>
> TIA -David
>
>
>
Message 4 of 13
Anonymous
in reply to: Anonymous

Doug,

Not really what I need.

So far
(setq tdef (tblsearch "VIEW" "PRES"))

(command "_.PLAN" "_World"
"_.VPOINT (cdr (assoc 11 tdef))
"_.ZOOM" "_C" (cdr (assoc 12 tdef)) #####)

The #### ( zoom scale factor )is what I can't figure out. The example I
posted needs to be around 200

Nothing I see adds up.

Values for:

Distance from direction to center is way too big
View Height is way too small
View Width is too small


-David

"Doug Broad" wrote in message
news:D25735663B16B46F03B6508D160B80D7@in.WebX.maYIadrTaRb...
> David,
>
> How about view? Are you using R2000+?
>
> (command "_.-view" "_sei");southeast isometric or (command "_.vpoint"
"1,-1,1")
> (command "_.-view" "_nei");northeast isometric or (command "_.vpoint"
"1,1,1")
> (command "_.-view" "_swi");southwest isometric or (command "_.vpoint"
"-1,-1,1")
> (command "_.-view" "_nwi");northwest isometric or (command "_.vpoint"
"-1,1,1")
>
> Use cond to compare the current view direction to the closest vpoint
isometric
> direction and use either view or viewpoint.
>
> Doug
>
Message 5 of 13
Anonymous
in reply to: Anonymous

Huh?

The angles for the example is approx 116 & 19.9. I'm trying simulate the
zoom and center factors also. -David

"Doug Barr" wrote in message
news:2284313731D84914C7289B551440EE70@in.WebX.maYIadrTaRb...
> If I want a 'true' isometric viewpoint, I use the command
> VPOINT R 225 35.26438968
> That's an approximation.
> -doug
>
Message 6 of 13
Anonymous
in reply to: Anonymous

what I do is use the VPOINT command, Rotate option and then type in the
defaults that it prompts for, pressing enter to accept the defaults doesn't
do anything but to simply retype the prompted default for one of the angles
causes the view to revert from perspective mode.
to automate this I suppose you would getvar the view angles or compute them
from the target and camera
happy to ya



David Bethel wrote in message
news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> Greetings,
>
> Okay, I have a saved perspective view with the following values:
>
> Table Name - (0 . VIEW)
> Item Name - (2 . PRES)
> Flag - (70 . 0)
> View Height - (40 . 76.0021)
> View Center - (10 0.0 0.0)
> View Width - (41 . 103.757)
> View Direction - (11 -168.101 336.202 136.784)
> View Target - (12 -6.00175 7.99912 31.0)
> Lense Length - (42 . 50.0)
> Front Clip Plane - (43 . -19.8463)
> Rear Clip Plane - (44 . -19.8463)
> Twist - (50 . 0.0)
> View Mode - (71 . 1)
>
> How can I make a regular isometric view, using (command) to come close to
> the same values:
>
> CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
>
> I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects. Number
> of REGENS doesn't really matter.
>
> TIA -David
>
>
>
Message 7 of 13
Anonymous
in reply to: Anonymous

Oh, by isometric, I was assuming that you wanted one of the 6 isometric views.

A perspective view is like a cone. The lens value could be interpreted into an angle and
the the distance between the target and the camera could be multiplied by the tangent of
half the angle and then multiplied by 2.

Zoom height = (* 2 (tan (/ cone_angle 2)) (distance camera target))

Doug

"David Bethel" wrote in message
news:2A05DD39581A11EB282D43A220299E73@in.WebX.maYIadrTaRb...
> Doug,
>
> Not really what I need.
>
> So far
> (setq tdef (tblsearch "VIEW" "PRES"))
>
> (command "_.PLAN" "_World"
> "_.VPOINT (cdr (assoc 11 tdef))
> "_.ZOOM" "_C" (cdr (assoc 12 tdef)) #####)
>
> The #### ( zoom scale factor )is what I can't figure out. The example I
> posted needs to be around 200
>
> Nothing I see adds up.
>
> Values for:
>
> Distance from direction to center is way too big
> View Height is way too small
> View Width is too small
>
>
> -David
>
> "Doug Broad" wrote in message
> news:D25735663B16B46F03B6508D160B80D7@in.WebX.maYIadrTaRb...
> > David,
> >
> > How about view? Are you using R2000+?
> >
> > (command "_.-view" "_sei");southeast isometric or (command "_.vpoint"
> "1,-1,1")
> > (command "_.-view" "_nei");northeast isometric or (command "_.vpoint"
> "1,1,1")
> > (command "_.-view" "_swi");southwest isometric or (command "_.vpoint"
> "-1,-1,1")
> > (command "_.-view" "_nwi");northwest isometric or (command "_.vpoint"
> "-1,1,1")
> >
> > Use cond to compare the current view direction to the closest vpoint
> isometric
> > direction and use either view or viewpoint.
> >
> > Doug
> >
>
>
>
Message 8 of 13
Anonymous
in reply to: Anonymous

What am I thinking? If all you want to do is translate between perspective and
orthographic,
then just (command "dview" "" "off")

Doug B

"Doug Broad" wrote in message
news:89601D43E1723D1764816A1FBB7F695A@in.WebX.maYIadrTaRb...
> Oh, by isometric, I was assuming that you wanted one of the 6 isometric views.
>
> A perspective view is like a cone. The lens value could be interpreted into an angle
and
> the the distance between the target and the camera could be multiplied by the tangent of
> half the angle and then multiplied by 2.
>
> Zoom height = (* 2 (tan (/ cone_angle 2)) (distance camera target))
>
> Doug
>
> "David Bethel" wrote in message
> news:2A05DD39581A11EB282D43A220299E73@in.WebX.maYIadrTaRb...
> > Doug,
> >
> > Not really what I need.
> >
> > So far
> > (setq tdef (tblsearch "VIEW" "PRES"))
> >
> > (command "_.PLAN" "_World"
> > "_.VPOINT (cdr (assoc 11 tdef))
> > "_.ZOOM" "_C" (cdr (assoc 12 tdef)) #####)
> >
> > The #### ( zoom scale factor )is what I can't figure out. The example I
> > posted needs to be around 200
> >
> > Nothing I see adds up.
> >
> > Values for:
> >
> > Distance from direction to center is way too big
> > View Height is way too small
> > View Width is too small
> >
> >
> > -David
> >
> > "Doug Broad" wrote in message
> > news:D25735663B16B46F03B6508D160B80D7@in.WebX.maYIadrTaRb...
> > > David,
> > >
> > > How about view? Are you using R2000+?
> > >
> > > (command "_.-view" "_sei");southeast isometric or (command "_.vpoint"
> > "1,-1,1")
> > > (command "_.-view" "_nei");northeast isometric or (command "_.vpoint"
> > "1,1,1")
> > > (command "_.-view" "_swi");southwest isometric or (command "_.vpoint"
> > "-1,-1,1")
> > > (command "_.-view" "_nwi");northwest isometric or (command "_.vpoint"
> > "-1,1,1")
> > >
> > > Use cond to compare the current view direction to the closest vpoint
> > isometric
> > > direction and use either view or viewpoint.
> > >
> > > Doug
> > >
> >
> >
> >
>
>
Message 9 of 13
Anonymous
in reply to: Anonymous

dview off will keep the vpoint correct, but not the viewctr or zoom scale
factor.

> > Zoom height = (* 2 (tan (/ cone_angle 2)) (distance camera target)) <<

That I'll try -David

"Doug Broad" wrote in message
news:D09083E85BCA8D2EA4F7751EA4E3A751@in.WebX.maYIadrTaRb...
> What am I thinking? If all you want to do is translate between
perspective and
> orthographic,
> then just (command "dview" "" "off")
>
> Doug B
>
> "Doug Broad" wrote in message
> news:89601D43E1723D1764816A1FBB7F695A@in.WebX.maYIadrTaRb...
> > Oh, by isometric, I was assuming that you wanted one of the 6 isometric
views.
> >
> > A perspective view is like a cone. The lens value could be interpreted
into an angle
> and
> > the the distance between the target and the camera could be multiplied
by the tangent of
> > half the angle and then multiplied by 2.
> >
> > Zoom height = (* 2 (tan (/ cone_angle 2)) (distance camera target))
> >
> > Doug
> >
> > "David Bethel" wrote in message
> > news:2A05DD39581A11EB282D43A220299E73@in.WebX.maYIadrTaRb...
> > > Doug,
> > >
> > > Not really what I need.
> > >
> > > So far
> > > (setq tdef (tblsearch "VIEW" "PRES"))
> > >
> > > (command "_.PLAN" "_World"
> > > "_.VPOINT (cdr (assoc 11 tdef))
> > > "_.ZOOM" "_C" (cdr (assoc 12 tdef)) #####)
> > >
> > > The #### ( zoom scale factor )is what I can't figure out. The example
I
> > > posted needs to be around 200
> > >
> > > Nothing I see adds up.
> > >
> > > Values for:
> > >
> > > Distance from direction to center is way too big
> > > View Height is way too small
> > > View Width is too small
> > >
> > >
> > > -David
> > >
> > > "Doug Broad" wrote in message
> > > news:D25735663B16B46F03B6508D160B80D7@in.WebX.maYIadrTaRb...
> > > > David,
> > > >
> > > > How about view? Are you using R2000+?
> > > >
> > > > (command "_.-view" "_sei");southeast isometric or (command
"_.vpoint"
> > > "1,-1,1")
> > > > (command "_.-view" "_nei");northeast isometric or (command
"_.vpoint"
> > > "1,1,1")
> > > > (command "_.-view" "_swi");southwest isometric or (command
"_.vpoint"
> > > "-1,-1,1")
> > > > (command "_.-view" "_nwi");northwest isometric or (command
"_.vpoint"
> > > "-1,1,1")
> > > >
> > > > Use cond to compare the current view direction to the closest vpoint
> > > isometric
> > > > direction and use either view or viewpoint.
> > > >
> > > > Doug
> > > >
> > >
> > >
> > >
> >
> >
>
>
Message 10 of 13
Anonymous
in reply to: Anonymous

Mathew,

That will get vpoint angle correct but not simulate the zoom factor. My
setup basically zooms extent. -David



"matthew" wrote in message
news:B255181D63407D2C20B46F67F9D1FCDB@in.WebX.maYIadrTaRb...
> what I do is use the VPOINT command, Rotate option and then type in the
> defaults that it prompts for, pressing enter to accept the defaults
doesn't
> do anything but to simply retype the prompted default for one of the
angles
> causes the view to revert from perspective mode.
> to automate this I suppose you would getvar the view angles or compute
them
> from the target and camera
> happy to ya
>
>
>
> David Bethel wrote in message
> news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> > Greetings,
> >
> > Okay, I have a saved perspective view with the following values:
> >
> > Table Name - (0 . VIEW)
> > Item Name - (2 . PRES)
> > Flag - (70 . 0)
> > View Height - (40 . 76.0021)
> > View Center - (10 0.0 0.0)
> > View Width - (41 . 103.757)
> > View Direction - (11 -168.101 336.202 136.784)
> > View Target - (12 -6.00175 7.99912 31.0)
> > Lense Length - (42 . 50.0)
> > Front Clip Plane - (43 . -19.8463)
> > Rear Clip Plane - (44 . -19.8463)
> > Twist - (50 . 0.0)
> > View Mode - (71 . 1)
> >
> > How can I make a regular isometric view, using (command) to come close
to
> > the same values:
> >
> > CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
> >
> > I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects.
Number
> > of REGENS doesn't really matter.
> >
> > TIA -David
> >
> >
> >
>
>
Message 11 of 13
Anonymous
in reply to: Anonymous

THE ZOOM FACTOR VARIES IN PERSPECTIVE MODE IT DEPENDS ON THE DISTANCE AND
LENSLENGTH
TRY TO DERIVE A SATASFACTORY ZOOM FACTOR RESULT FROM THOSE TWO VARIABLES,
SORRY ABOUT THE CAPS

David Bethel wrote in message
news:C154D522FF5BE494712CE71C769F8553@in.WebX.maYIadrTaRb...
> Mathew,
>
> That will get vpoint angle correct but not simulate the zoom factor. My
> setup basically zooms extent. -David
>
>
>
> "matthew" wrote in message
> news:B255181D63407D2C20B46F67F9D1FCDB@in.WebX.maYIadrTaRb...
> > what I do is use the VPOINT command, Rotate option and then type in the
> > defaults that it prompts for, pressing enter to accept the defaults
> doesn't
> > do anything but to simply retype the prompted default for one of the
> angles
> > causes the view to revert from perspective mode.
> > to automate this I suppose you would getvar the view angles or compute
> them
> > from the target and camera
> > happy to ya
> >
> >
> >
> > David Bethel wrote in message
> > news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> > > Greetings,
> > >
> > > Okay, I have a saved perspective view with the following values:
> > >
> > > Table Name - (0 . VIEW)
> > > Item Name - (2 . PRES)
> > > Flag - (70 . 0)
> > > View Height - (40 . 76.0021)
> > > View Center - (10 0.0 0.0)
> > > View Width - (41 . 103.757)
> > > View Direction - (11 -168.101 336.202 136.784)
> > > View Target - (12 -6.00175 7.99912 31.0)
> > > Lense Length - (42 . 50.0)
> > > Front Clip Plane - (43 . -19.8463)
> > > Rear Clip Plane - (44 . -19.8463)
> > > Twist - (50 . 0.0)
> > > View Mode - (71 . 1)
> > >
> > > How can I make a regular isometric view, using (command) to come close
> to
> > > the same values:
> > >
> > > CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
> > >
> > > I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects.
> Number
> > > of REGENS doesn't really matter.
> > >
> > > TIA -David
> > >
> > >
> > >
> >
> >
>
>
Message 12 of 13
Anonymous
in reply to: Anonymous

> dview off will keep the vpoint correct, but not the viewctr or zoom scale
> factor.

Doesn't appear to change those things for me but it may depend on the
object viewed. I was using a simple cube.

The issue may be more complex however since the objects' view
extents will most certainly change as the entities closer to the camera shrink
and the entities farther away get larger. I am not sure a program complex
enough to calculate the future extents would "pay-back". Good luck.

Doug
Message 13 of 13
Anonymous
in reply to: Anonymous

Close as found so far:

(setq tdef (tblsearch "VIEW" "PRES"))
(command "-.PLAN" "_W"
"_.VPOINT" (cdr (assoc 11 tdef))
"_.ZOOM" "_C" (cdr (assoc 12 tdef))
(/ (cdr (assoc 41 tdef)) (* 0.01 (cdr (assoc 42 tdef)))))


-David


"matthew" wrote in message
news:EC913B3902B7AC6E981F47808DCA59D9@in.WebX.maYIadrTaRb...
> THE ZOOM FACTOR VARIES IN PERSPECTIVE MODE IT DEPENDS ON THE DISTANCE AND
> LENSLENGTH
> TRY TO DERIVE A SATASFACTORY ZOOM FACTOR RESULT FROM THOSE TWO VARIABLES,
> SORRY ABOUT THE CAPS
>
> David Bethel wrote in message
> news:C154D522FF5BE494712CE71C769F8553@in.WebX.maYIadrTaRb...
> > Mathew,
> >
> > That will get vpoint angle correct but not simulate the zoom factor. My
> > setup basically zooms extent. -David
> >
> >
> >
> > "matthew" wrote in message
> > news:B255181D63407D2C20B46F67F9D1FCDB@in.WebX.maYIadrTaRb...
> > > what I do is use the VPOINT command, Rotate option and then type in
the
> > > defaults that it prompts for, pressing enter to accept the defaults
> > doesn't
> > > do anything but to simply retype the prompted default for one of the
> > angles
> > > causes the view to revert from perspective mode.
> > > to automate this I suppose you would getvar the view angles or compute
> > them
> > > from the target and camera
> > > happy to ya
> > >
> > >
> > >
> > > David Bethel wrote in message
> > > news:2F915BB6AF8AC0A1FC1D1806E233523A@in.WebX.maYIadrTaRb...
> > > > Greetings,
> > > >
> > > > Okay, I have a saved perspective view with the following values:
> > > >
> > > > Table Name - (0 . VIEW)
> > > > Item Name - (2 . PRES)
> > > > Flag - (70 . 0)
> > > > View Height - (40 . 76.0021)
> > > > View Center - (10 0.0 0.0)
> > > > View Width - (41 . 103.757)
> > > > View Direction - (11 -168.101 336.202 136.784)
> > > > View Target - (12 -6.00175 7.99912 31.0)
> > > > Lense Length - (42 . 50.0)
> > > > Front Clip Plane - (43 . -19.8463)
> > > > Rear Clip Plane - (44 . -19.8463)
> > > > Twist - (50 . 0.0)
> > > > View Mode - (71 . 1)
> > > >
> > > > How can I make a regular isometric view, using (command) to come
close
> > to
> > > > the same values:
> > > >
> > > > CAMERA, TARGET, VIEWSIZE, VIEWCTR etc
> > > >
> > > > I can use VPOINT, ZOOM, PAN commands. No entmakeing tables objects.
> > Number
> > > > of REGENS doesn't really matter.
> > > >
> > > > TIA -David
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost