Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ETABS API- need help

Status
Not open for further replies.

Ahmed Ali-1986

Structural
Feb 1, 2020
1
Hi all
have a good day
I need a help in etabs api using vba code,
I want to select a frame element manually in etabs and get its properties (unique name, frame section, height,.. Etc) to excel and to get the section properties data (dimensions of sections and rebars configuration)
Can you help, or guide me for a reference except that csi manual

Ahmed
 
Replies continue below

Recommended for you

I have written code below using python syntax so will need to convert to similar VBA code.

First, get the selected objects

>> selected_objects=SapModel.SelectObj.GetSelected();

This will return

>> (number_objects_selected,(object_enumeration),(object_id),return_value)

Frame objects have a enumeration==2.

Then it will be going thru FrameObj methods and PropFrame methods

>> frame_property=SapModel.FrameObj.GetSection(frame_id);
>> rebar_column=SapModel.PropFrame.GetRebarColumn(frame_property);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor