Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to add camera controls through the Inventor API but am not having any luck getting the camera to move whatsoever. Everything I've tried results in nothing happening (Not even an error cropping up), and I'm wondering if the API controls are simply not working for some reason.
Ex.
inventorApplication.ActiveView.Camera.ViewOrientationType = ViewOrientationTypeEnum.kFrontViewOrientation
inventorApplication.ActiveView.Camera.Perspective = True
inventorApplication.ActiveView.Camera.Fit()
inventorApplication.ActiveView.Camera.Target = inventorApplication.TransientGeometry.CreatePoint(0, 0, 0)
inventorApplication.ActiveView.Camera.Eye.TranslateBy(inventorApplication.TransientGeometry.CreateVector(0, 0, -(inventorApplication.ActiveView.Camera.Eye.Z) + inch2database(72)))
inventorApplication.ActiveView.Camera.Apply()
The above will do absolutely nothing, nor will any combination of them do anything. The only things I've found so far that do work are:
inventorApplication.ActiveView.GoHome()
inventorApplication.UserInterfaceManager.ShowCleanScreen = True
Am I missing something here?
Solved! Go to Solution.