HyperSizer Support Forum

Software Use => Scripting => Topic started by: Ryan on May 28, 2010, 09:41:47 AM

Title: Setting Loads in the Object Model
Post by: Ryan on May 28, 2010, 09:41:47 AM
To set a load programmatically via the object model you'll need:
-   A valid mechanical load set number
-   Component object
-   Panel load object

The basic process is as follows:

‘ Grab the existing panel load object from component object
Set objPanelLoad = objComponent.DesignLoadsPanel( loadSetNum, dptForBucklingAnalysis) ‘ 2nd option specifies whether load is for buckling or strength

‘ Modify the panel load object
objPanelLoad.Nx = -1000.0
objPanelLoad.Ny = -50.0

‘ Assign modified panel load object to component object
objComponent.DesignLoadsPanel ( loadSetNum, dptForBucklingAnalysis) = objPanelLoad