News: Need training? HyperSizer Training Videos are available now! Learn more here: https://hypersizer.com/trainingevents/e-learning/

Author Topic: Setting Loads in the Object Model  (Read 19786 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 »