Macro Samples

No26: Maximum Principal Stress and Von Mises Equivalent Stress

Techniques Used in the Example

You can extract the maximum principal stress and von Mises equivalent stress in the 3D lattice.
You can learn how to extract the results of your wish automaticallly from the calculation.

Simulation Image

No25: Access Log Checking

Techniques Used in the Example

You can check the login time.

Simulation Image

No24: Convert Nastran format to STL format with deformed shapes.

Techniques Used in the Example

This macro converts nastran format file that includes mesh data with displacements to STL format file.
It is possible to import the output STL format file into other CAD software.

Simulation Image

No23: Free Curves

Techniques Used in the Example

You can create the free curves connecting all coordinates by reading the entered coordinates.
By entering the coordinates given by the parabola equation, a parabola body can be created.

Simulation Image

No21: Magnetic Flux Integration by Integrand

Techniques Used in the Example

You can integrate the specified faces of the multiple results.
You can learn how to integrate the arbitrary faces with the integrand.

Simulation Image

No20: Damping Calculation of Sound Waves for Acoustic Analysis

Techniques Used in the Example

You can calculate the damping of sound waves when they propagate in the lossy media.
You can learn how to set the complex sound speed and obtain the results of sound pressure.

Simulation Image

No19: Optimization by Goal Seek

Techniques Used in the Example

You can calculate the electrode width so as to set the characteristic impedance of microstrip line to 50 ohms.
You can learn how to optimize the characeteristic impedance and obtain the results.

Simulation Image

No18: Trajectory Calculation of Free-fallling Magnetic Object for Magnetic Analysis

Techniques Used in the Example

You can calculate the trajectory of a free-falling magnetic object.
You can learn how to obtain the electromagnetic force from the results and graph the results.

Simulation Image

No17: Impdedance Calculation between Ports for Electromagnetic Analysis

Techniques Used in the Example

You can calculate the impedance between the two ports using the the electromagnetic analysis results.
You can learn how to convert the S-parameters to the Z-parameters.

Simulation Image

No16: Recalculation by the Feedback of the Results for Stress Analysis

Techniques Used in the Example

You can recalculate by modifying the analysis conditions.
You can learn how to feedback the results to analysis model and analysis conditions.

Simulation Image

No15: Recalculation by the Feedback of the Results for Thermal Analysis

Techniques Used in the Example

You can recalculate by modifying the analysis conditions.
You can learn how to feedback the results to analysis model and analysis conditions.

Simulation Image

No14: Gravity Center of Whole Model

Techniques Used in the Example

You can calculate the gravity center of the whole model by getting gravity center, volume, and density of the body.
You can learn how to obtain the body's properties such as gravity center and volulme.

Simulation Image

No13: Save Specified Results Window for Piezelectric Analysis

Techniques Used in the Example

You can specify and save the results of all modes as an image.
Also, you can filter the modes by specifying the coupling coefficient to remove the unwanted modes.

Simulation Image

No12: Save Specified Results Window for Stress Analysis

Techniques Used in the Example

You can specify and save the results of all modes as an image.

Simulation Image

No10: Resonant Analysis with Initial Stress Taken into Account

Techniques Used in the Example

CAD data is imported for static analysis.
Its results are used as an initial stress in the resonant analysis.
You can learn how to import CAD data, duplicate a project, and extract results automatically.

Simulation Image

No9: Results in 3D Grids

Techniques Used in the Example

The results are saved in 3d grids.
You can learn how to extract the results of your wish from the calculation results.

Simulation Image

No8: Execute Analysis with Reference to the Existing Meshes

Techniques Used in the Example

You can learn how to execute a specific processing for multiple files.

Simulation Image

No7: Generate Only Meshes for Multiple Projects

Techniques Used in the Example

You can learn how to execute a specific processing for multiple files.

Simulation Image

No6: Timed Analysis

Techniques Used in the Example

Analysis is executed at the specified time.
You can learn how to control the processing with OnTime method of ExcelVBA.

Simulation Image

No5: Listing of Material Property Names

Techniques Used in the Example

Material property names in the specified project file are extracted.
You can learn how to extract the information of your wish.

Simulation Image

No4: Automatic Assignment of Body Attribute Name

Techniques Used in the Example

A body attribute name is given automatically to the body in the spcified project.
You can learn how to edit the multiple bodies collectively.

Simulation Image

No3: Toroidal Coil (based on Example 7 of Macro Help)

Techniques Used in the Example

The location of the end of turns of the coil can be specified. A coil of helical/spiral prism can be created.
You can learn how to create a complicated form automatically.

Simulation Image

No2: Save the Results Window of All Modes

Techniques Used in the Example

You can learn how to create an analysis model, set conditions, execute analysis, and extract the results with macro.

Simulation Image

No1: DXF File Import

Techniques Used in the Example

A project file is automatically created with an imported DXF file.
If multiple DXF files are specified, multiple projects are created for each DXF file.
You can learn how to manage files with macro.

Simulation Image

Back to User Support