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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set user coefficient in ETABS APIV22 with C#?

670Lynn

Student
Joined
Jul 13, 2025
Messages
1
HI, I'm new here.
I’m currently building an automated structural-analysis workflow with the ETABS API, but I can’t find a way to programmatically set a load pattern’s User Coefficient or assign seismic loads that rely on it. After combing through the ETABS API documentation, it appears there’s no direct method exposed for specifying User Coefficient values.

Has anyone run into this limitation before? If so, how did you work around it, or what alternative approach would you recommend?螢幕擷取畫面 2025-07-14 001222.png
 
It looks like you can modify user coefficients through the interactive database table, which means in turn you can access this in the ETABs API.

1752527344465.png

Have you tried the database tablese get and set methods?

I have a few examples on github of using these methods.


See: private void ShowLoadCase_Load(object sender, EventArgs e) function.

Python:
TableKey = 'Section Cut Definitions'
TableVersion = 1
FieldsKeysIncluded = ['Name', 'Defined By', 'Group','Result Type', 'Result Location', 'Location X', 'Location Y', 'Location Z', 'Rotation About Z','Rotation About Y', 'Rotation About X', 'Axis Angle', 'Element Side', 'Number of Quads', 'Quad Number', 'Point Number', 'Quad X', 'Quad Y', 'Quad Z', 'GUID']
NumberRecords = len(flat_etabs_data)
        

y = SapModel.DatabaseTables.SetTableForEditingArray(TableKey,TableVersion,FieldsKeysIncluded, NumberRecords,mega_data)             
    
FillImport = True
z= SapModel.DatabaseTables.ApplyEditedTables(FillImport)
 

Part and Inventory Search

Sponsor

Back
Top