question

Enrique Elizaga avatar image
1 Like"
Enrique Elizaga asked Joshua S answered

Using magnification in ortho view

Hi. I have successfully used view distance ranges in Perspective View to make visual objects appear or disappear to show the level of detail that I desire.

I have not been able to figure out how to do it in Ortho mode though, with the magnification option. Can you please give me some directions?

FlexSim 18.0.3
visual toolortho viewortho view magnification
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joshua S avatar image
2 Likes"
Joshua S answered

It works in the same manner. I edited the code:

  1. double ViewFarClip= 12;
  2. double ViewNearClip=70;
  3. print(getnodenum(viewmagnification(view)));
  4. if (getnodenum(viewmagnification(view))> ViewNearClip && getnodenum(viewmagnification(view))<ViewFarClip) {
  5. //Draw Cities
  6. } else {
  7. // Don't Draw Cities
  8. }
  9.  

this does what your perspective zoom does.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.