Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetPresentUnits and SetPresentUnits_2 in ETABS API

Status
Not open for further replies.

fracture_point

Structural
Mar 7, 2019
58
I have tried using both the SetPresentUnits and SetPresentUnits_2 methods in the ETABS API when running my script to draw my framing. It works and places the elements with the correct geometry, however the default viewing units in the model returns to imperial, rather than staying as it has been set in metric.

Has anyone overcome this?
 
Replies continue below

Recommended for you

I figured it out and thought I would share it here incase anyone else was interested. You can set up the default units for the project within the initialize model method:

Code:
 SapModel.InitializeNewModel(6)

The variable 6 sets the model to kN_m_C, leaving this argument blank will default to imperial units.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor