Assembly: VM.Operations.Post.dll Interface for Animation View related operations.
Implements
IView, IOperationsBaseProperties
AnalysisResultType
Gets the type of analysis result for the currently created animation view.Property Value
AnalysisResultTypeExamples
The following example demonstrates how to use theAnalysisResultType property:
Remarks
The AnalysisResultType property is used to determine the type of analysis result associated with the currently created animation view.This type is one of several analysis types generated from the overall result. The available options are:- Dynamics
- Eigenvalue
- Initial
- LinearStatics
- Statics
- Thermal
- ModeContribution
- Nothing
BottomColor
Gets or sets the bottom color of the view’s background.Property Value
ColorExamples
The following example demonstrates how to use theBottomColor property:
Remarks
The BottomColor property allows you to set the bottom color of the view’s background. In the UI, this property is represented under the “Background” category with the property name “Bottom Color”.DocumentFilePath
Gets the file path that contains the information of the simulation results.Property Value
stringExamples
The following example demonstrates how to use theDocumentFilePath property:
Remarks
Use this property to retrieve the location of the file containing the simulation results. The file path is read-only and is determined by the simulation process.IsVisibleLogo
Gets or sets a value indicating whether the logo is visible.Property Value
boolExamples
The following example demonstrates how to use theIsVisibleLogo property:
Remarks
This flag determines whether the logo is shown or hidden. In the UI, this property is represented under the “Logo” category with the property name “Visible”.IsVisibleNavigationCube
Gets or sets a value indicating whether the navigation cube is visible.Property Value
boolExamples
The following example demonstrates how to use theIsVisibleNavigationCube property:
Remarks
This flag determines whether the navigation cube is shown or hidden. In the UI, this property is represented under the “Navigation Cube” category with the property name “Visible”.IsVisibleStateInfo
Gets or sets a value indicating whether the state information is visible.Property Value
boolExamples
The following example demonstrates how to use theIsVisibleStateInfo property:
Remarks
This flag determines whether the state information is shown or hidden. In the UI, this property is represented under the “StateInfo” category with the property name “Visible”.LogoHeight
Gets or sets the height of the logo image.Property Value
uintExamples
The following example demonstrates how to use theLogoHeight property:
Remarks
This property allows you to set the height of the logo image. In the UI, this property is represented under the “Logo” category with the property name “Height”.LogoPath
Gets or sets the file path of the logo image.Property Value
stringExamples
The following example demonstrates how to use theLogoPath property:
Remarks
This property allows you to set the file path of the logo image. In the UI, this property is represented under the “Logo” category with the property name “File Path”.LogoPosition
Gets or sets the position of the logo.Property Value
LayoutExamples
The following example demonstrates how to use theLogoPosition property:
Remarks
This property allows you to set the position of the logo. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
LogoWidth
Gets or sets the width of the logo image.Property Value
uintExamples
The following example demonstrates how to use theLogoWidth property:
Remarks
This property allows you to set the width of the logo image. In the UI, this property is represented under the “Logo” category with the property name “Width”.NavigationCubePosition
Gets or sets the position of the navigation cube.Property Value
LayoutExamples
The following example demonstrates how to use theNavigationCubePosition property:
Remarks
This property allows you to set the position of the navigation cube. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
Opacity
Gets or sets the opacity of the logo.Property Value
doubleExamples
The following example demonstrates how to use theOpacity property:
Remarks
This property allows you to set the opacity of the logo. Only values between 0 and 100 are valid. In the UI, this property is represented under the “Logo” category with the property name “Transparency”.StateInfoPosition
Gets or sets the position of the state information.Property Value
LayoutExamples
The following example demonstrates how to use theStateInfoPosition property:
Remarks
This property allows you to set the position of the state information. The available options are:- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
TextColorStateInfo
Gets or sets the font color of the state information.Property Value
ColorExamples
The following example demonstrates how to use theTextColorStateInfo property:
Remarks
This property allows you to set the font color of the state information. In the UI, this property is represented under the “StateInfo” category with the property name “Font Color”.TopColor
Gets or sets the top color of the view’s background.Property Value
ColorExamples
The following example demonstrates how to use theTopColor property:
Remarks
The TopColor property allows you to set the top color of the view’s background. In the UI, this property is represented under the “Background” category with the property name “Top Color”.Methods
CreateCoordinateSystem(string, string)
Creates a coordinate system for analyzing a position on a body.Parameters
name string
The name of the coordinate system to be created.
parentInfo string
The parent entity for the coordinate system.
Define the parent body or node in coordinate system.
If not provided, the default value is GroundName.
Returns
IOperationsCSYSViewModel An instance of IOperationsCSYSViewModel representing the created coordinate system.Examples
The following example demonstrates how to use theCreateCoordinateSystem method:
Remarks
This method creates a coordinate system with the specified name and assigns it to the given parent entity. If the parent entity is not specified, the coordinate system is assigned to the default ground entity.CreateSoundPressure(IList<string>, IList<string>, double, double, double, double, double, double, int, int, bool)
Creates sound pressure data based on the Rayleigh Integral for analyzing sound pressure generated by vibrations on the system surface.Parameters
bodyNames IList<string>
The list of entity names whose surfaces generate the sound pressure.
coordinateNames IList<string>
The list of coordinate system names used in the analysis.
coarseningRate double
Percentage of the number of nodes remaining in the sampling result with respect to the initial number of nodes.
maxAreaFactor double
Maximum allowable area of each element generated by the sampling result. It sets the condition that the area of each element cannot be greater than (Max Area Factor) * (Average element area).
maxAspectRatio double
Maximum allowable aspect ratio of each element generated by the sampling result.
airDensity double
Density of the air.
soundVelocity double
Speed of sound in air.
frequency double
The number of analysis results per second is determined as 10*analysis frequency.
start int
The start frame for the time range to be analyzed.
end int
The end frame for the time range to be analyzed.
isDeicbelScale bool
The decibel scale.
Returns
IEnumerable<IOperationsLineDataSeriesViewModelBase> An IEnumerable`1 representing the sound pressure data series.Examples
The following example demonstrates how to use theCreateSoundPressure method:
Remarks
This method uses the Rayleigh Integral to analyze the sound pressure generated by the vibrations on the system surface.GetViewModelByName(string)
Retrieves an instance of an entity based on the provided name.Parameters
name string
The name of the entity to be retrieved.
Returns
IEntityBaseViewModel An instance of IEntityBaseViewModel representing the entity with the specified name, ornull if no such entity exists.
Examples
The following example demonstrates how to use theGetViewModelByName method:
Remarks
This method searches for an entity with the given name and returns the corresponding instance. If no entity with the specified name is found, the method returnsnull.
GetViewSpecs()
Retrieves an array of view specifications corresponding to the number of loaded animation frames.Returns
IViewSpec[] An array of IViewSpec instances that represent the positions of the animation camera for each frame, ornull if no frames are loaded.
Examples
The following example demonstrates how to use theGetViewSpecs method:
Remarks
This method returns an array where each element corresponds to a specific frame in the loaded animation, allowing for the configuration of the animation camera’s position for each frame. If no frames are loaded, the method returnsnull.
PlayAnimation()
Plays the loaded animation frames.Examples
The following example demonstrates how to use thePlayAnimation method:
Remarks
This method starts the playback of the animation frames that have been loaded. If no frames are loaded, the method should handle this scenario appropriately, such as by displaying an error message or logging the issue.RecordingAnimation(string, RecordingType, RecordingRangeType, int, IViewSpec[])
Records the loaded animation frames to a file.Parameters
filePath string
The file path where the recording will be saved.
recordingType RecordingType
The format in which the recording will be saved. Supported types are AVI, WMV1, WMV2, MP4, and GIF.
rangeType RecordingRangeType
The range of the recording. Supported options are ActiveView
for the currently active view, and ActiveGroup
for the page containing the active view.
frameRate int
The frame rate of the recording. The default value is 10 frames per second.
viewSpecs IViewSpec[]
An array of IViewSpec instances for setting the camera position for each frame.
If null, the camera position will not change and will remain at the existing position.
Examples
The following example demonstrates how to use theRecordingAnimation method:
Remarks
This method records the loaded animation frames to a specified file format. It supports different recording types and range options. The frame rate can be adjusted, and custom camera positions for each frame can be set through theviewSpecs parameter.
SetViewSpec(IViewSpec)
Updates the camera information for the current animation frame position.Parameters
viewSpec IViewSpec
The IViewSpec instance containing the new camera information.
Examples
The following example demonstrates how to use theSetViewSpec method:
Remarks
This method updates the camera information for the current position in the animation frames using the providedviewSpec.
StopAnimation()
Stops the currently playing animation.Examples
The following example demonstrates how to use theStopAnimation method: