Design Review Software Engineer, Herbert He, mentions a few noteworthy changes to the 2011 Design Review APIs that aren't included in the current API documentation.
• New Animation Detection API
• New Lighting and Field of View Commands
• Moved APIs
New Animation Detection API
This new API enables you to detect if the 3D section as an animation section. This would be useful if the client code needs to control whether the animation commands are shown, or to provide some other feedback to the user based on the presence of animation.
Query whether the 3D section has animation.
Return code Description
S_OK The property was retrieved successfully
E_INVALIDARG Invalid parameter passed
E_FAIL Current section is invalid
If the 3D section has animation object, the value of the property is VARIANT_TRUE, else the value is VARIANT_FALSE.
New Lighting and Field of View Commands
Two lighting commands were added in order to provide a more simplified lighting interface to the user (others were removed from the UI but are still available in the API). These new simplified lighting commands are available in the API.
An additional possible value for EModelSectionType2.LightingOption, "No Light".
An additional possible value for EModelSectionType2.LightingOption, "Default Light".
Field of View Commands:
Two field of view commands were added to allow the user to increase or decrease the field of view.
Only applicable to 3D sections, increase the value of field of view by 5 by default. For example:
CompositeViewer.ExecuteCommandEx ("FOVWIDE", 0);
Only applicable to 3D sections, decrease the value of field of view by 5 by default. For example:
Moved APIs from the EPlotRenderer interface to the EPlotViewer interface
As a result of refactoring the Autodesk Design Review code base, all COM objects were removed from the EPlotRenderer module, relocating all EPlotRender APIs to the EPlotViewer module.
All existing code such as:
…needs to be changed to:
Thanks for the update Herbert!