Skip to main content
Namespace: VM.Operations.Post.Interfaces
Assembly: VM.Operations.Post.dll
Interface for Animation View related operations.

Implements

IView, IOperationsBase

Properties

AnalysisResultType

Gets the type of analysis result for the currently created animation view.

Property Value

AnalysisResultType

Examples

The following example demonstrates how to use the AnalysisResultType 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

Color

Examples

The following example demonstrates how to use the BottomColor 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

string

Examples

The following example demonstrates how to use the DocumentFilePath 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. Gets or sets a value indicating whether the logo is visible.

Property Value

bool

Examples

The following example demonstrates how to use the IsVisibleLogo 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

bool

Examples

The following example demonstrates how to use the IsVisibleNavigationCube 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

bool

Examples

The following example demonstrates how to use the IsVisibleStateInfo 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

uint

Examples

The following example demonstrates how to use the LogoHeight 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

string

Examples

The following example demonstrates how to use the LogoPath 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

Layout

Examples

The following example demonstrates how to use the LogoPosition 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
In the UI, this property is represented under the “Logo” category with the property name “Layout”.

LogoWidth

Gets or sets the width of the logo image.

Property Value

uint

Examples

The following example demonstrates how to use the LogoWidth 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

Layout

Examples

The following example demonstrates how to use the NavigationCubePosition 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
In the UI, this property is represented under the “Navigation Cube” category with the property name “Layout”.

Opacity

Gets or sets the opacity of the logo.

Property Value

double

Examples

The following example demonstrates how to use the Opacity 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

Layout

Examples

The following example demonstrates how to use the StateInfoPosition 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
In the UI, this property is represented under the “StateInfo” category with the property name “Layout”.

TextColorStateInfo

Gets or sets the font color of the state information.

Property Value

Color

Examples

The following example demonstrates how to use the TextColorStateInfo 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

Color

Examples

The following example demonstrates how to use the TopColor 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 the CreateCoordinateSystem 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 the CreateSoundPressure 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, or null if no such entity exists.

Examples

The following example demonstrates how to use the GetViewModelByName 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 returns null.

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, or null if no frames are loaded.

Examples

The following example demonstrates how to use the GetViewSpecs 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 returns null.

PlayAnimation()

Plays the loaded animation frames.

Examples

The following example demonstrates how to use the PlayAnimation 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 the RecordingAnimation 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 the viewSpecs 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 the SetViewSpec method:

Remarks

This method updates the camera information for the current position in the animation frames using the provided viewSpec.

StopAnimation()

Stops the currently playing animation.

Examples

The following example demonstrates how to use the StopAnimation method:

Remarks

This method stops the playback of the animation frames that are currently playing. If no animation is currently playing, the method should handle this scenario appropriately, such as by displaying an error message or logging the issue.