ETABS MCP

v0.3.2
io.github.Moha2005269/etabs-mcp Checked 3 days ago Published 1 month ago

Agentic MCP server for CSI ETABS v22+: model, load, analyse, design and inspect structures.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

etabs_list_installations

List ETABS installations on this machine (v22+ are supported) and ETABS instances that are running now.

etabs_connect

Connect to ETABS. Other tools connect automatically with mode 'auto', so call this only to choose a specific instance or version, to drive several ETABS instances, or to recover after ETABS was closed. Launching ETABS takes 10-30 s.

ParameterTypeDescription
install_dirETABS program folder, overrides 'version'.
instancestringName for this connection. Use a new name (e.g. 'b') to drive a second ETABS alongside the first; it becomes the active instance.
modestringattach = use a running ETABS; start = launch a new one; auto = attach if one is running, else start.
pidAttach to this ETABS process id (see etabs_list_installations).
reconnectbooleanDrop the current connection first.
versionETABS major version to use, e.g. 22 or 23. Default: the running one, else the newest installed.
visiblebooleanShow the ETABS window when launching it.

etabs_instances

List the ETABS instances this server drives, switch which one every other tool acts on, or remove one. Typical use: compare two design options side by side, or copy data from one model into another.

ParameterTypeDescription
actionstring
close_etabsboolean'remove' only: also exit that ETABS (needs confirm).
confirmboolean
nameInstance for 'use' or 'remove'.

etabs_status

Connection and model status without connecting: whether ETABS is attached, its version, the open model file, present units, and whether the model is locked (has analysis results).

etabs_disconnect

Release the ETABS connection. ETABS keeps running unless close_etabs is true.

ParameterTypeDescription
close_etabsbooleanAlso exit the ETABS application.
confirmbooleanRequired when closing ETABS without saving.
savebooleanSave the model before exiting (only with close_etabs).

etabs_model_overview

One-call summary of the open model: file, version, units, lock state, object counts, stories, load patterns/cases/combinations, materials, sections and groups. Start every task with this.

etabs_new_model

Start a new model (replaces the open one). Lengths are in the chosen units.

ParameterTypeDescription
bottom_story_heightNumber in the new model's units or e.g. '6 m'.
confirmbooleanRequired when the current model has objects: it is replaced without saving.
grid_lines_xinteger
grid_lines_yinteger
number_of_storiesinteger
spacing_xNumber in the new model's units or e.g. '6 m'.
spacing_yNumber in the new model's units or e.g. '6 m'.
templatestringblank = empty model; grid_only = grids + stories; steel_deck = grids, stories and a steel floor system.
typical_story_heightNumber in the new model's units or e.g. '6 m'.
unitsstringUnits for the new model.

etabs_open_model

Open an existing ETABS model file (.EDB, or an importable .e2k text file). Replaces the open model.

ParameterTypeDescription
path *stringFull path of an .EDB (or importable .e2k/.$et) file.
confirmbooleanRequired when the current model has objects: it is closed without saving.

etabs_save_model

Save the model. A new (untitled) model needs a path. Analysis also requires a saved model.

ParameterTypeDescription
pathSave as this .EDB path. Omit to save to the current file.

etabs_set_units

Set the present units. All tool inputs and outputs use the present units.

ParameterTypeDescription
units *string

etabs_get_stories

Story table, top story first: name, elevation, height, master/similar settings.

etabs_set_stories

Redefine the story table. ETABS only accepts this on a model without objects on the affected stories.

ParameterTypeDescription
stories_bottom_up *arrayStories from the lowest to the highest.
base_elevation

etabs_add_frames

Draw beams, columns and braces between two points (like Draw > Frame). Joints are created or merged automatically. Returns the ETABS names of the new frames, in input order; failures are listed per item.

ParameterTypeDescription
frames *array
csysstring

etabs_add_areas

Draw floors, slabs and walls from corner points (like Draw > Floor/Wall). Returns new area names.

ParameterTypeDescription
areas *array
csysstring

etabs_add_points

Add joints at coordinates (existing joints at the same location are reused).

ParameterTypeDescription
points *array
csysstring

etabs_list_objects

List frames, areas or points with their geometry (in present units), sections and stories. ETABS 'name' is the unique name used by every API call; 'label' is what the GUI shows per story.

ParameterTypeDescription
kind *string
include_labelsbooleanAdd the label and story of each object (one extra call per object).
limitinteger
offsetinteger
storyOnly objects on this story.

etabs_delete_objects

Delete frames, areas or points chosen by name, by group, or the current selection.

ParameterTypeDescription
kind *string
confirmbooleanDeleting cannot be undone through the API. Ask the user first.
group
names
selectedboolean

etabs_set_restraints

Assign supports (Assign > Joint > Restraints): fixed, pinned, roller or custom DOFs, to joints chosen by name, by elevation, by group, or the current selection.

ParameterTypeDescription
at_elevationApply to every joint at this Z, e.g. 0 or '0 m'.
dofs[UX, UY, UZ, RX, RY, RZ] for 'custom'.
group
pointsJoint names.
restraintstringSupport type; 'custom' uses 'dofs'.
selectedboolean
tolerancenumber

etabs_assign_section

Assign a frame section or an area property (Assign > Frame > Section / Shell > Property).

ParameterTypeDescription
kind *string
section *stringFrame section or area (slab/deck/wall) property name.
group
names
selectedboolean

etabs_select

Change or read the selection, like clicking in the ETABS window. Many tools accept selected=true to act on it. Returns the selected objects grouped by type.

ParameterTypeDescription
actionstring'get' only reports the selection; 'objects' selects 'names' of 'kind'.
deselectboolean
group
kind
names

etabs_generate_building

Build a complete regular building in one call: grids, stories, materials, sections, columns, beams, braces or shear walls (with pier labels), slabs, fixed supports, a rigid diaphragm, SDL/LL patterns with slab loads, and default design combinations. Follow with lateral loads (etabs_define_seismic_load ...), then analysis.

ParameterTypeDescription
bays_x *arrayBay widths along X, e.g. ['8 m', '8 m', '6 m'].
bays_y *arrayBay widths along Y.
story_heights *arrayStory heights bottom-up, e.g. ['4.5 m', '3.5 m', '3.5 m'].
beam_sectionSteel: AISC16 shape (default W18X35).
beam_sizearrayConcrete beam [depth, width].
brace_sectionSteel braced: AISC16 shape (default W10X33).
column_sectionSteel: AISC16 shape (default W14X90). Concrete: ignored, use column_size.
column_sizearrayConcrete column [depth, width].
confirmbooleanRequired when the open model has objects: it is replaced.
diaphragmboolean
liveLive area load in present force/length² units.
slab_thickness
superimposed_deadSDL area load in present force/length² units (e.g. 1.5 for kN/m²).
systemstringLateral system. Braces/walls go in the end bays of every perimeter frame line.
unitsstring
wall_thickness

etabs_list_properties

List materials (with type), frame sections (with shape and dimensions in present units) and area properties (slabs, decks, walls).

ParameterTypeDescription
kindstring

etabs_define_material

Define a material, either from the ETABS library (region + standard + grade, the same lists as the 'Add Material' dialog) or as a custom isotropic material from E, weight and strength.

ParameterTypeDescription
material_type *string
name *string
elastic_modulusCustom material: E (present force/length^2).
fcConcrete compressive strength f'c.
fuSteel/rebar tensile strength (default 1.25 fy).
fySteel/rebar yield strength.
gradeLibrary material: grade, e.g. 'Grade 50', 'C30/37'.
poisson_rationumber
regionLibrary material: region, e.g. 'United States', 'Europe', 'India'.
standardLibrary material: standard, e.g. 'ASTM A992', 'EN 1992-1-1'.
thermal_coefficientnumber
unit_weightWeight per unit volume (present units).

etabs_define_frame_section

Define a frame section: parametric concrete/steel shapes, or a steel shape imported from an ETABS section library. Dimensions are in present length units.

ParameterTypeDescription
material *stringMaterial name (see etabs_list_properties).
name *string
shape *string
bottom_flange_thicknessi_section only; defaults to flange_thickness.
bottom_flange_widthi_section only; defaults to width.
deptht3: overall depth (rectangle, i_section, tube) or outside diameter (circle, pipe).
flange_thickness
library_filefrom_library: section database file, e.g. 'AISC16.xml', 'Euro.xml', 'Indian.xml'.
library_sectionfrom_library: section name in that file, e.g. 'W14X90'.
web_thicknessWeb thickness (i_section, tube) or wall thickness (pipe).
widtht2: width (rectangle, tube) or top flange width (i_section).

etabs_define_area_section

Define a slab or wall property (Define > Section Properties > Slab/Wall Sections).

ParameterTypeDescription
kind *string
material *string
name *string
thickness *Number in present units or e.g. '200 mm'.
shell_typestring
slab_typestring

etabs_define_load_patterns

Define load patterns (Define > Load Patterns), each optionally with its linear static load case.

ParameterTypeDescription
patterns *array

etabs_assign_loads

Assign loads (Assign > Frame/Shell/Joint Loads): distributed or point loads on frames, uniform loads on areas, and forces/moments on joints. Values are in present units; 'gravity' acts downward (-Z).

ParameterTypeDescription
loads *array

etabs_define_combinations

Define load combinations (Define > Load Combinations) from load cases and other combinations, and/or generate the default design combinations for the active design codes.

ParameterTypeDescription
add_default_design_combosarrayAlso generate the code default design combinations for these materials.
combinationsarrayCombinations to create.

etabs_list_load_definitions

Load patterns (with type and self-weight multiplier), load cases (with type) and combinations (with their cases and scale factors).

etabs_define_seismic_load

Define an ASCE 7-16 equivalent-lateral-force seismic load pattern (Define > Load Patterns > Auto Lateral Load). Creates the Quake pattern and its load case.

ParameterTypeDescription
bottom_storyDefault: Base.
cdnumberDeflection amplification Cd.
ct_typeintegerApproximate-period Ct/x set (ETABS numbering, 2 = 0.03;0.75 'all other').
directionsarrayDirections and accidental eccentricity sense.
eccentricitynumber
importancenumber
namestring
omeganumberOverstrength factor Ω0.
periodstringFundamental period source.
rnumberResponse modification coefficient R.
s1numberMapped MCER 1-s acceleration S1 (g).
site_classstring
ssnumberMapped MCER short-period acceleration Ss (g).
tlnumberLong-period transition TL (s).
top_storyDefault: the top story.
user_periodnumber

etabs_define_wind_load

Define an automatic wind load pattern applied to diaphragms (Define > Load Patterns > Auto Lateral Load > Wind). ASCE 7-16 is fully parameterised; other codes take their table fields via 'fields'.

ParameterTypeDescription
anglenumberWind direction angle in degrees (0 = +X, 90 = +Y).
bottom_story
casesstringASCE 7 wind load cases.
codestringAuto-wind table code suffix, e.g. 'ASCE 7-16', 'ASCE 7-22', 'Eurocode1 2005'. Other codes need 'fields'.
exposurestring
fieldsExtra/override table fields for the chosen code (see etabs_get_table on 'Load Pattern Definitions - Auto Wind - <code>').
gust_factornumber
kdnumber
kztnumber
leeward_cpnumber
namestring
top_story
wind_speednumberBasic wind speed V (mph for ASCE 7).
windward_cpnumber

etabs_define_response_spectrum

Define an ASCE 7-16 response spectrum function and a response-spectrum load case that uses it.

ParameterTypeDescription
case_namestring
dampingnumber
directionstring
eccentricitynumber
function_namestring
importancenumber
modal_casestring
rnumber
s1number
scale_factorDefault g·I/R in present units (from importance and r).
site_classstring
ssnumber
tlnumber

etabs_set_mass_source

Set the default mass source (Define > Mass Source): element self mass, added mass and load patterns.

ParameterTypeDescription
include_added_massboolean
include_self_weightboolean
loadsLoad patterns that contribute mass, e.g. [{'pattern':'SDL'}, {'pattern':'LL','multiplier':0.25}].

etabs_assign_diaphragm

Define a rigid or semi-rigid diaphragm and assign it to the slabs (area objects) on the chosen stories.

ParameterTypeDescription
namestring
semi_rigidboolean
storiesStories to assign (default: all with slabs).

etabs_set_modal_case

Set how many modes the eigen modal case computes (raise it until mass participation is enough).

ParameterTypeDescription
casestring
max_modesinteger
min_modesinteger

etabs_run_analysis

Run the analysis (Analyze > Run Analysis). ETABS needs a saved model, saves it again before running, and locks the model afterwards. Large models can take minutes: use background=true to avoid client timeouts.

ParameterTypeDescription
backgroundbooleanReturn a job id at once and run in the background (for big models or clients with short tool timeouts). Follow with etabs_job_wait / etabs_job_status.
casesLoad cases to run (default: all).
save_asSave to this .EDB path first. Required for a never-saved model.

etabs_analysis_status

Per-case analysis status (not run / finished ...), run flags, and whether the model is locked.

etabs_unlock_model

Unlock the model so it can be edited after analysis (the padlock button). Deletes analysis results.

ParameterTypeDescription
confirmbooleanUnlocking deletes all analysis and design results. Ask the user first.

etabs_get_results

Read analysis results the way they appear in ETABS tables: base reactions, story drifts and forces, joint displacements/reactions, modal periods and mass ratios, element forces, piers and spandrels. For any other result table use etabs_get_table.

ParameterTypeDescription
result *stringWhich result table to read.
groupstring
limit
load_casesLoad cases to include. Omit both lists for every case and combination.
load_combinations
offsetinteger
whereRow filter, e.g. {'Story': 'Story2'} or {'OutputCase': 'Dead'}.

etabs_run_design

Run design (Design > ... > Start Design/Check) with the model's current design codes and preferences. Needs analysis results. Steel and concrete return a member summary, worst first.

ParameterTypeDescription
kind *stringShear wall design cannot be started through the ETABS API; read its results with etabs_get_table.
backgroundbooleanRun as a background job (see etabs_job_wait).
summary_limitintegerMembers to return in the summary, worst first.

etabs_job_status

Status of a background job (analysis or design): running / done / failed, elapsed time, the tail of the ETABS analysis log while it runs, and the full result once done. Never blocks.

ParameterTypeDescription
job_idJob id; omit for the most recent job.

etabs_job_wait

Wait for a background job to finish, up to timeout_seconds, then report it (same shape as etabs_job_status). Call again if it is still running.

ParameterTypeDescription
job_idJob id; omit for the most recent job.
timeout_secondsnumberGive up waiting after this long (the job keeps running). Keep it under your client's tool timeout.

etabs_get_design_summary

Design results per member: steel demand/capacity ratios with governing combo, or concrete required reinforcement for beams and columns. Worst members first.

ParameterTypeDescription
kind *string
limitinteger
only_failingbooleanSteel: only members with ratio > 1 or errors.

etabs_design_codes

Read, list or change the design codes (Design > ... > View/Revise Preferences). 'list' returns every code this ETABS version supports for steel, concrete, shear wall, slab and composite design.

ParameterTypeDescription
actionstring
codeFor 'set': e.g. 'AISC 360-16', 'ACI 318-19', 'Eurocode 2-2004'. 'list' shows valid names.
kindFor 'set'.

etabs_run_shear_wall_design

Run shear wall design (Design > Shear Wall Design > Start Design/Check) and return pier and spandrel results. The ETABS API has no call for this, so the server invokes the menu command through Windows UI Automation; ETABS must be visible. Walls must carry pier/spandrel labels (etabs_assign_label).

ParameterTypeDescription
limitintegerPier/spandrel rows to return, worst first.

etabs_get_wall_design

Shear wall design results: piers (reinforcing ratio, D/C, boundary zones, messages) or spandrels (flexural and shear reinforcement), worst first. Run etabs_run_shear_wall_design first.

ParameterTypeDescription
kindstring
label
limitinteger
story

etabs_get_concrete_design

Concrete frame design results (after etabs_run_design(kind='concrete')): required longitudinal and shear reinforcement for beams, PMM ratios and areas for columns, joint shear and beam/column capacity ratios. Areas are in present units.

ParameterTypeDescription
elementstring
envelopebooleanOne row per frame (governing station) instead of every station.
limitinteger
namesOnly these frames.

etabs_get_slab_design

Concrete slab design results (after etabs_run_design(kind='concrete_slab')): design-strip flexure and shear reinforcement, or punching shear checks at columns, worst first.

ParameterTypeDescription
limitinteger
partstring

etabs_menu

Use ETABS menu commands that have no API, exactly as a person would click them (through Windows UI Automation, no mouse). 'list' browses the menus; 'invoke' runs a command. Commands that open a dialog leave it open: check with etabs_screenshot and close it with etabs_dialogs.

ParameterTypeDescription
actionstring
confirmbooleanRequired for 'invoke': menu commands can change or delete model data. Ask the user first.
pathMenu path, e.g. ['Design', 'Shear Wall Design'] to list, or ['Analyze', 'Check Model...'] to invoke.

etabs_dialogs

List or close dialogs ETABS has open. A modal dialog blocks the ETABS API, so close leftovers after etabs_menu or a design run.

ParameterTypeDescription
actionstring
titleClose the dialog with this title ('close' with no title closes all).

etabs_code_checks

Run the standard post-analysis checks in one call: story drift against the allowable, torsional irregularity, soft story, weight (mass) irregularity, modal mass participation and response-spectrum base shear vs ELF. Each check reports its clause, the governing numbers and pass/fail.

ParameterTypeDescription
casesLateral cases/combos to check (default: every Quake, Wind and RS case).
checksDefault: all.
drift_amplificationnumberCd/Ie applied to elastic drifts (1.0 for wind or drifts already amplified).
drift_limitnumberAllowable story drift ratio Δa/h (ASCE 7-16 Table 12.12-1: 0.020 for most Risk Category I/II buildings).
elf_case
modal_casestring
modal_targetnumber
rs_case
rs_directionstring
rs_targetnumber
soft_story_limitsarray[ratio to story above, ratio to average of 3 above].
torsion_limitsarray
weight_limitnumber

etabs_scale_response_spectrum

Scale a response-spectrum case so its base shear reaches the ELF base shear (ASCE 7-16 12.9.1.4), then optionally re-run and verify.

ParameterTypeDescription
elf_case *string
rs_case *string
confirmbooleanScaling unlocks the model and deletes results. Ask the user first.
directionstring
rerunbooleanRe-run the analysis after scaling (the model is unlocked to edit the case).
targetnumberFraction of the ELF base shear to reach (ASCE 7-16: 1.0).

etabs_list_tables

List ETABS database tables (definitions, assignments, analysis and design results), with whether each has data and whether it can be edited. Result tables appear after analysis/design.

ParameterTypeDescription
containsCase-insensitive filter on the table key, e.g. 'drift', 'frame assign', 'material'.
include_emptybooleanInclude tables with no data in the current model.

etabs_get_table

Read any ETABS database table as rows (Display > Show Tables). Values with units are in present units.

ParameterTypeDescription
table_key *stringExact table key from etabs_list_tables, e.g. 'Story Drifts' or 'Frame Assignments - Section Properties'.
fieldsOnly these field keys (default: all).
groupstringOnly objects in this group ('' = all).
limit
load_casesResult tables: load cases to show. Omit both lists for all cases and combinations.
load_combinations
numericbooleanConvert fields that carry units to numbers.
offsetinteger
whereKeep rows whose fields equal these values, e.g. {'Story': 'Story3'}.

etabs_edit_table

Edit a model table the way the Interactive Database editor does: read it, change/append/delete rows, then apply. Returns ETABS's import log with error and warning counts.

ParameterTypeDescription
table_key *stringAn editable table key (etabs_list_tables shows editable=true).
append_rowsNew rows (field key -> value); missing fields are left blank.
applybooleanApply the edits to the model. False validates and cancels (dry run).
delete_whereRemove rows matching any of these field filters.
groupstring
replace_rowsReplace the entire table with these rows.
updatesChange fields on rows matching 'match'.

etabs_screenshot

Take a screenshot of the ETABS window: the model views, selection and any open dialog, exactly what an engineer sees. Use it to check geometry, deformed shapes or design colours after other tools ran.

ParameterTypeDescription
capturestringscreen = what is on the monitor (brings ETABS forward for a moment, then restores focus); offscreen = never changes focus, but ETABS's GPU model views come out blank.
max_widthinteger
refreshbooleanRefresh the model views first so recent API edits are drawn.
zoom_to_fitbooleanZoom all views to the full model.

etabs_show_window

Show or hide the ETABS application window. Hidden ETABS runs faster for batch work.

ParameterTypeDescription
visibleboolean

etabs_refresh_view

Redraw the ETABS model views (and optionally zoom to fit) after model changes made through the API.

ParameterTypeDescription
zoom_to_fitboolean

etabs_render_view

Render the model offscreen from its data: any angle, deformed shape of any case, members coloured by design ratio, displacement, section or storey. Works with ETABS hidden and never takes focus. Use it to look at what you built and at results the ETABS window cannot be switched to through the API.

ParameterTypeDescription
azimuthOverride the camera azimuth in degrees.
color_bystringdesign_ratio needs a design run; displacement needs deformed_case.
deformed_caseLoad case or combination whose deflected shape to draw.
deformed_scaleDisplacement multiplier; omit for automatic (largest deflection ≈ 4% of the model height).
elevationOverride the camera elevation in degrees.
heightinteger
highlightFrame names to emphasise (e.g. from etabs_find_objects).
show_slabsboolean
storiesOnly draw these stories.
themestring
viewstring
widthinteger

etabs_find_objects

Find objects by engineering criteria: 'columns on Story3', 'beams longer than 8 m', 'members with D/C over 0.9', 'everything in this box'. Returns names usable by every other tool; can select them.

ParameterTypeDescription
boxOnly objects whose centroid lies inside this box.
groupOnly objects assigned to this group.
kindstring
limitinteger
max_length
max_ratio
min_lengthFrames at least this long (number in present units or e.g. '8 m').
min_ratioFrames whose design D/C ≥ this (needs design results).
roleFrames only, from geometry.
sectionsFrame sections or area properties.
selectbooleanAlso select the matches in ETABS (clears the current selection).
stories

etabs_what_changed

What changed in the model since the last call (or since the baseline): objects added, removed or modified, sections/loads/combos/groups/stories added or removed, units, lock and file. Picks up edits the engineer made by hand in the ETABS window, so the agent can stay in sync. The first call records the baseline.

ParameterTypeDescription
limitinteger
resetbooleanOnly record a new baseline.

etabs_checkpoint

Save the model and keep a copy as a named checkpoint (an undo point before risky edits). Restore it with etabs_restore_checkpoint. Needs a saved model.

ParameterTypeDescription
label *stringShort name, e.g. 'before-resize'.

etabs_list_checkpoints

Checkpoints saved for the open model, newest first.

etabs_restore_checkpoint

Roll the model back to a checkpoint. The model keeps its original file name.

ParameterTypeDescription
checkpoint *stringCheckpoint file name or label from etabs_list_checkpoints.
confirmbooleanRestoring replaces the current model state. Ask the user first.

etabs_export_model

Export the whole model as ETABS's .e2k text and return it (paged). One read gives the complete definition (stories, grids, materials, sections, objects, assignments, loads, cases), ideal for audits.

ParameterTypeDescription
max_charsinteger
offsetintegerCharacter offset into the file, for paging.
pathWhere to write the .e2k text file (default: next to the model).
sectionsOnly return these $-sections (prefix match), e.g. ['STORIES', 'FRAME ASSIGNS', 'LOAD PATTERNS'].

etabs_design_report

Write an engineering summary in Markdown: model, loads, analysis status, base reactions, modal periods, drifts and the design check with the most critical members. Returns the text and the file.

ParameterTypeDescription
pathWrite the Markdown here (default: <model>_report.md next to the model).
topintegerCritical members to list.

etabs_assign_label

Assign objects to a group, pier or spandrel label (created if missing), like Assign > ... in ETABS.

ParameterTypeDescription
label *string
label_type *stringGroups organise selection and output; piers/spandrels drive wall design and forces.
groupAssign to every object already in this group.
names
object_kindstring
removebooleanGroups only: remove the objects from the group instead.
selectedboolean

etabs_search_api

Search all ~1,300 ETABS API methods. Use this to find a method when no curated tool covers the task, then etabs_describe_api for its parameters and etabs_call_api to run it.

ParameterTypeDescription
query *stringWords to match against method names, interface paths and parameter names, e.g. 'frame release' or 'story drift'.
interfaceRestrict to one interface, e.g. 'cFrameObj'.
limitinteger

etabs_describe_api

Show a method's exact signature (types, ByRef outputs, defaults, enum values, safety level), or list an interface's methods and sub-interfaces, or an enum's values. Reflects the connected ETABS version.

ParameterTypeDescription
path *stringA method path ('FrameObj.GetReleases'), an interface ('cFrameObj' or 'FrameObj') or an enum name ('eLoadPatternType').

etabs_call_api

Call any ETABS API method. Arguments are validated and converted against the live signature; ByRef values come back in 'outputs'. A non-zero 'ret' means ETABS rejected the call (ok=false).

ParameterTypeDescription
path *stringMethod path relative to SapModel ('PointObj.SetRestraint'), or 'App.<method>' for the application object.
argsArguments by parameter name. Omit ByRef outputs; enums accept names or numbers; arrays are JSON lists.
confirmbooleanRequired for destructive methods (Delete*, New*, OpenFile, unlocking...). Ask the user first.
max_itemsCap on returned array lengths.

etabs_call_api_batch

Run several API calls in order in one round trip (for example, define and assign many properties). Each result is reported; with stop_on_error the batch halts at the first failure.

ParameterTypeDescription
calls *array
confirmbooleanConfirms every destructive call in the batch.
stop_on_errorbooleanStop at the first failed call.