hexagon logo

Adams View UI: Is there a command to query the absolute view orientation of a model?

With a lot of trial and error, I found a view orientation of a model that matches a photo of the real thing (which has to be used in a video transition from the photo to the Adams results), but how do I now find the values for this unique orientation so I can work from it in future? If I extract the commands from the command window, it only records the relative orientation changes and I am not keen on cleaning up the cmd file to try an get the complete list of orientations right.
I am hoping there is a command to query and reuse for the absolute view orientation.
  • I've had luck taking the commands from the command window to get a specific view, but the trick was to do a standard view and/or fit first. Then you always start from the same spot, and the values become kinda "absolute" and no longer "relative".
     
    I will dump the commands into a .cmd file and do my tweaking from there...
  • Hi Paul,
     
    If you right-click in the background and do Save View Settings then you can later use Restore View Settings to get back to this view. I can't figure out the mechanism it's using here, but it used to work like this:
    When you create a new view using the commands in teh article above, though, it seems to be broken. I'll log a defect report on this.
     
    In the meantime I presume that the right-click options will work, but they likely only persist in a .bin file of the model (I hope!).
     
    HTH,
    Kent
     
  • Hi Kent,
     
    after view management create new_view_name = top_new
     
    if you click View/Layout and select layout (one view)
     
    it is possible to use mentioned command view management restore saved_view_name = top_new
     
    I just get black background
     
    Jozef
  • Thanks! This is already helping me look in the right place but the save view option doesn't seem to exist in the post processor if I use the commend to save and restore, upon using "view manage restore" , I also just get a black background (This is in the Post Processor).
  • So far, I found out how to get the object (view) orientation in the Pre Processor at least:
    Command Navigator: View Management Create:
    For "View Name" use the right-click Pick option and click in the model view. This then populates the Object Orientation values in the grey field.
    Not sure yet how this will help me but hopefully...
    Snipaste_2021-06-10_16-55-16
  • If I tweak the view in the postprocessor and then view the command window, it tells me what it did was:
     
    view rotate view=.gui.ppt_main.sash1.sash2.gfx.page_1.view_2 screen=2.5162062611, 0.0, 0.0
     
    I am guessing if identify which exact view you are using and paste in the angles you have identified in your screenshot you can reproduce the relative adjustment. If immediately beforehand you have gone to a reference view as Jesper suggested this should give you what you want. You can paste it into the command window as is when you have the details as you want.
     
    You can pop them into a little .cmd file ("ThatView.cmd") and perform them at will, going forward. Not perfect but seems like a reproducible workaround?