Software Use > Scripting

Setting Loads in the Object Model

(1/1)

Ryan:
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

Navigation

[0] Message Index

Go to full version