Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Mar 7, 2019
Messages
58
Location
CA
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?
 
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

Back
Top