News: HyperSizer Pro V7.3.24 just Released!  Contact us to upgrade your software!

Author Topic: Setting Loads in the Object Model  (Read 3551 times)

Ryan

  • Administrator
  • *****
  • Posts: 145
    •  
Setting Loads in the Object Model
« 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

« Last Edit: May 28, 2010, 09:43:21 AM by Ryan »