Applies To | |||
Product(s): | STAAD.Pro | ||
Version(s): | All | ||
Environment: | N/A | ||
Area: | OpenSTAAD | ||
Subarea: | Property | ||
Original Author: | Shreyanka Bhattacharjee, Bentley Technical Support Group | ||
Problem Description:
How to assign Tapered I Beam Property and Material using OpenSTAAD functions (VBA and python)?
Solution:
Please use the following functions
Parameter for function CreateTaperedIProperty:
[Input] Properties: Section Properties of Tapered I section. This is a single dimensional array with array size 6.
Parameter for function AssignBeamProperty:
[Input] beam: Single or an array of integers containing list of Member Numbers
[Input] PropNo: The number ID identifying a property
Parameter for function AssignMaterialToMember:
[Input] material: Identification title of material
[Input] beam: Single or an array of integers containing list of Member Numbers
A sample VBA syntax:
Set objOpenSTAAD = GetObject(, "StaadPro.OpenSTAAD")
Dim Properties(6) As Double
Dim PropNo As Long
Dim beam(3) As Long
Dim material As String
Properties(0) = 0.4 'Depth of section at start node
Properties(1) = 0.01 'Thickness of web
Properties(2) = 0.5 'Depth of section at end node
Properties(3) = 0.3 'Width of top flange
Properties(4) = 0.008 'Thickness of top flange
Properties(5) = 0.25 'Width of bottom flange
Properties(6) = 0.007 'Thickness of bottom flange
PropNo = objOpenSTAAD.Property.CreateTaperedIProperty(Properties)
beam(0) = 1
beam(1) = 3
beam(2) = 5
beam(3) = 6
objOpenSTAAD.Property.AssignBeamProperty beam, PropNo
material = "STEEL"
objOpenSTAAD.Property.AssignMaterialToMember material, beam
Python Script:
communities.bentley.com/.../Property_5F00_Material.py
Output: