Applies To | |||
Product(s): | STAAD.Pro | ||
Version(s): | All | ||
Environment: | N/A | ||
Area: | OpenSTAAD | ||
Subarea: | Analysis Command | ||
Original Author: | Bentley Technical Support Group, Shreyanka Bhattacharjee | ||
Problem Description:
How to assign PERFORM ANALYSIS command using OpenSTAAD function
Solution:
You need to use function PerformAnalysis
Parameter:
[Input] iPrintOption: Option index for specifying the print option
Value of iPrintOption :
0: NO PRINT
1: PRINT LOAD DATA
2: PRINT STATIC CHECK
3: PRINT STATIC LOAD
4: PRINT MODE SHAPES
5: PRINT BOTH
6: PRINT ALL
Sample VBA Syntax:
Dim objOpenSTAAD As Object
Dim iPrintOption As Long
Set objOpenSTAAD = GetObject(, "StaadPro.OpenSTAAD")
iPrintOption = 2
objOpenSTAAD.Command.PerformAnalysis iPrintOption