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!

ETABS API- need help

Status
Not open for further replies.

Ahmed Ali-1986

Structural
Joined
Feb 1, 2020
Messages
1
Location
EG
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
 
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

Back
Top