Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HeisenbergJY1/PySap2000
/ functions
Functions
1,543 in github.com/HeisenbergJY1/PySap2000
⨍
Functions
1,543
◇
Types & classes
378
↓ 1,759 callers
Function
com_data
Extract data from a specific position in a COM result value. Args: result: Raw return value from a COM call index: Position
com_helper.py:84
↓ 237 callers
Function
com_ret
Extract the return code from a COM result value. For tuple/list results, the return code is expected at `result[-1]`. If a scalar intege
com_helper.py:31
↓ 33 callers
Method
_ensure_connected
Ensure the COM connection is still valid. All public methods that use `self._model` should call this first. Raises:
application.py:103
↓ 25 callers
Function
_safe_float
Safely convert a string value to `float`.
report/data_collector.py:55
↓ 25 callers
Method
create_object
Create a single object. Args: obj: Object to create, such as `Point`, `Frame`, or `Material` Returns:
application.py:356
↓ 24 callers
Method
get_by_name
Get a group by name Args: model: SAP2000 SapModel object name: Group name Retur
group/group.py:224
↓ 20 callers
Method
get_name_list
Get the list of all group names Returns: List of group names
group/group.py:208
↓ 19 callers
Function
_first_match
Return the first non-empty value among candidate field names.
report/data_collector.py:90
↓ 15 callers
Method
get_count
Get the total number of groups Returns: Number of groups
group/group.py:198
↓ 15 callers
Function
get_logger
Return a child logger. Args: name: Child logger name Returns: A child logger inheriting the package logger
logger.py:124
↓ 15 callers
Method
get_table_for_display
Get display table data (array format). Args: model: SapModel object table_key: table key
database_tables/tables.py:532
↓ 15 callers
Method
set_present_units
Set the current display units. API: SetPresentUnits(Units) -> Long Args: model: SAP2000 SapModel object
global_parameters/units.py:97
↓ 13 callers
Method
to_dict_list
Convert to list-of-dicts format Returns: list of dicts (one per row)
database_tables/tables.py:247
↓ 12 callers
Function
_get_point_coord
Get point coordinates (using current model units) Args: model: SAP2000 SapModel object point_name: Point name
edit/point_projection.py:32
↓ 12 callers
Function
_transform_points
Apply rotation and translation to profile points (for SD sub-shapes). Args: points: Source profile points (relative to shape cen
geometry/section_profile.py:359
↓ 11 callers
Function
_get_env
Return an environment variable with the `PYSAP_` prefix.
config.py:29
↓ 10 callers
Method
get_profile_points
Generate circular profile points
geometry/section_profile.py:46
↓ 9 callers
Function
_try_get_table
Try to fetch a table and return `None` instead of raising.
report/data_collector.py:72
↓ 9 callers
Method
get_present_units
Get the current display units. API: GetPresentUnits() -> eUnits Returns: Active `UnitSystem`.
global_parameters/units.py:84
↓ 8 callers
Method
get_all
(cls, model, names=None)
tests/test_application.py:108
↓ 8 callers
Method
get_object
Retrieve a single object. Args: obj: Object with a `no` attribute identifying the target item
application.py:412
↓ 7 callers
Method
get_members_by_type
Get group members of a specific type Args: model: SAP2000 SapModel object object_type: Object type
group/group.py:375
↓ 6 callers
Function
_fmt
Format values, showing `-` when `0` means not applicable.
report/generator.py:136
↓ 6 callers
Function
clear_selection
Clear the current selection Args: model: SAP2000 SapModel object Returns: `0` on success Examp
selection/select.py:76
↓ 6 callers
Method
rename_object
Rename an object. Args: obj: Object to rename; it must provide a `change_name` method new_name: New
application.py:526
↓ 6 callers
Method
set_active_dof
Set the active degrees of freedom. API: Analyze.SetActiveDOF(DOF[]) -> Long Args: model: SAP2000 SapModel objec
global_parameters/model_settings.py:128
↓ 5 callers
Method
_get
Fetch frame data from SAP2000.
structure_core/frame.py:210
↓ 5 callers
Function
_get_env_int
Read an integer environment variable.
config.py:34
↓ 5 callers
Method
_setup_output
Set the active output case and combo selection.
results/point_results.py:199
↓ 5 callers
Method
add_element
Add an element
geometry/element_geometry.py:120
↓ 5 callers
Method
get_active_dof
Get the active degrees of freedom. API: Analyze.GetActiveDOF(DOF[]) -> Long Returns: `DOFState` instance.
global_parameters/model_settings.py:112
↓ 5 callers
Method
get_value
Get a specific cell value Args: row_index: row index (0-based) field_name: field name
database_tables/tables.py:174
↓ 5 callers
Function
select_all
Select all objects Args: model: SAP2000 SapModel object Returns: `0` on success Example:
selection/select.py:44
↓ 5 callers
Function
set_chinese_2010_overwrite
Set a GB 50017-2010 overwrite value. Args: model: SAP2000 SapModel object name: Object name, group name, or ignored depending on
design/chinese_2010.py:206
↓ 5 callers
Function
set_chinese_2010_preference
Set a GB 50017-2010 preference value. Args: model: SAP2000 SapModel object item: Preference index (1–15) value: Value to
design/chinese_2010.py:164
↓ 5 callers
Method
to_dict
(self)
geometry/element_geometry.py:32
↓ 4 callers
Function
_build_table_index
Build an index for faster lookup by name.
report/data_collector.py:80
↓ 4 callers
Function
_change_point_coord
Change point coordinates (using current model units)
edit/point_projection.py:49
↓ 4 callers
Method
_create
Create or update the group in SAP2000 Updates the group if it exists; otherwise creates a new one. Returns:
group/group.py:118
↓ 4 callers
Function
_get_env_bool
Read a boolean environment variable.
config.py:40
↓ 4 callers
Method
_get_section_info
Get section type, parameters, and material Returns: (section_type, section_params, material)
geometry/model_extractor.py:710
↓ 4 callers
Method
_make_app
()
tests/test_application.py:98
↓ 4 callers
Method
_obj_desc
Build a short object description for log messages.
application.py:326
↓ 4 callers
Function
_restore_units
Restore original units
edit/point_projection.py:189
↓ 4 callers
Function
_save_and_set_units
Save current units and switch to `N-mm-C`
edit/point_projection.py:181
↓ 4 callers
Method
get_name_list
Get all link-object names
structure_core/link.py:301
↓ 4 callers
Method
get_object_list
Retrieve multiple objects. Args: obj_type: Object class nos: Optional list of object identifiers; `N
application.py:438
↓ 4 callers
Method
get_section_name_list
Get all area section-property names Args: model: SapModel object Returns: List
structure_core/area.py:689
↓ 4 callers
Function
set_area_selected
Set the selection state of an area object. Args: model: SAP2000 SapModel object area_name: Area object name sele
area/selection.py:14
↓ 4 callers
Function
set_frame_selected
Set the selection state of a frame object. Args: model: SAP2000 SapModel object frame_name: Frame object name se
frame/selection.py:17
↓ 4 callers
Function
set_link_selected
Set the selection state of a link object. Args: model: SAP2000 SapModel object link_name: Link object name selec
link/selection.py:17
↓ 4 callers
Method
update_object
Update a single object. Args: obj: Object to update Returns: `0` on success
application.py:501
↓ 3 callers
Method
_check_section_exists
Warn if the section is missing from the model.
structure_core/frame.py:197
↓ 3 callers
Method
_get
Fetch cable-object data from SAP2000. API: GetPoints(Name, Point1, Point2) -> (Point1, Point2, ret) API: GetProperty
structure_core/cable.py:190
↓ 3 callers
Method
_get
Retrieve load pattern data from the model. Args: model: SAP2000 SapModel object Returns:
loading/load_pattern.py:141
↓ 3 callers
Method
_get_guid
Fetch the point GUID.
structure_core/point.py:264
↓ 3 callers
Method
_get_guid
Get area-object GUID
structure_core/area.py:592
↓ 3 callers
Method
_get_material_fallback
Generic last-resort material getter.
section/frame_section.py:508
↓ 3 callers
Method
_parse_create_result
Parse the result returned by the create call.
structure_core/point.py:181
↓ 3 callers
Method
apply_edited_tables
Apply edited tables Apply all pending changes set by `set_table_for_editing` to the model. Args:
database_tables/tables.py:708
↓ 3 callers
Method
calculate
Run analysis. Returns: `0` on success Raises: SAPConnectionError: The COM connection is no longer v
application.py:654
↓ 3 callers
Method
change_name
Rename the group Note: the `"ALL"` group cannot be renamed. Args: model: SAP2000 SapModel objec
group/group.py:266
↓ 3 callers
Function
deselect_all_cases_and_combos
Deselect all cases and combinations for output. This is commonly called before querying results so the caller can select only the requir
results/setup.py:29
↓ 3 callers
Method
finish_modification
Finish batch modification mode and refresh the view.
application.py:314
↓ 3 callers
Function
get_active_dof
Get active model degrees of freedom Args: model: SAP2000 SapModel object Returns: `ActiveDOF` instance, or
analyze/analyze.py:100
↓ 3 callers
Method
get_all_tables
Get all tables (including empty tables) Args: model: SapModel object Returns: list
database_tables/tables.py:409
↓ 3 callers
Method
get_available_tables
Get available table list (tables with data) Args: model: SapModel object Returns: l
database_tables/tables.py:357
↓ 3 callers
Method
get_by_name
Get link object by name Example: link = Link.get_by_name(model, "1") print(f"Properties: {link.prope
structure_core/link.py:324
↓ 3 callers
Function
get_constraint_name_list
Get the list of all constraint names. Returns: List of constraint names.
constraints/constraints.py:28
↓ 3 callers
Function
get_constraint_type
Get the constraint type. Args: name: Constraint name Returns: `ConstraintType`, or `None` if the query fail
constraints/constraints.py:44
↓ 3 callers
Method
get_database_units
Return the database unit system. All model data is stored internally using database units and converted to the active displa
application.py:752
↓ 3 callers
Function
get_frame_groups
Get the groups assigned to a frame. Args: model: SAP2000 SapModel object frame_name: Frame object name Returns:
frame/group.py:95
↓ 3 callers
Function
get_frame_release
Return the end-release state of a frame. Args: model: `SapModel` object frame_name: Frame name Returns:
frame/release.py:119
↓ 3 callers
Method
get_model_filename
Return the active model filename. Args: include_path: Whether to include the full path Retu
application.py:794
↓ 3 callers
Method
get_profile_points
Generate I-section profile points
geometry/section_profile.py:86
↓ 3 callers
Function
get_steel_code
Get the active steel design code Args: model: SAP2000 SapModel object Returns: Code name string
design/steel.py:15
↓ 3 callers
Function
get_steel_usage
Convenience function to get steel usage Args: model: SapModel object group_by: Grouping mode; `None` returns total, `"se
statistics/steel_usage.py:280
↓ 3 callers
Method
get_table_for_editing
Get editable table data (array format). Similar to `get_table_for_display`, but returns editable data. Args
database_tables/tables.py:589
↓ 3 callers
Method
get_unit_description
Get a short label for the unit system (e.g. ``kN-m-C``). Args: units: Unit system Returns: Label st
global_parameters/units.py:128
↓ 3 callers
Function
set_case_selected_for_output
Set whether a case is selected for output. Args: model: SAP2000 SapModel object case_name: Case name selected: `
results/setup.py:50
↓ 3 callers
Function
validate_coordinate
Validate a coordinate value. Args: value: Coordinate value coord_name: Coordinate label used in error messages Returns:
utils/validation.py:42
↓ 2 callers
Function
_add_chart_with_caption
Insert an image and add a centered caption.
report/generator.py:247
↓ 2 callers
Function
_add_title
Add a centered bold title.
report/generator.py:87
↓ 2 callers
Function
_calc_projection
Compute the projection of point P onto line AB Args: point_a: Point A on the line `(x, y, z)` point_b: Point B on the li
edit/point_projection.py:134
↓ 2 callers
Method
_calculate_length
Compute the frame length. Args: model: `SapModel` object point_cache: Optional point-coordinate cach
structure_core/frame.py:323
↓ 2 callers
Method
_create
Create or update the named modifier Args: model: SAP2000 SapModel object Returns:
named_assigns/frame_modifier.py:80
↓ 2 callers
Method
_create
Create the point in SAP2000. Args: model: `SapModel` object Returns: `0` on suc
structure_core/point.py:101
↓ 2 callers
Method
_create
Create the frame in SAP2000. Returns: `0` on success
structure_core/frame.py:129
↓ 2 callers
Method
_create_shell
Create a shell property.
section/area_section.py:256
↓ 2 callers
Method
_delete
Delete the group from SAP2000 Note: the `"ALL"` group cannot be deleted. Returns: `0` on succes
group/group.py:184
↓ 2 callers
Function
_deprecated_class
Attach a deprecation warning to a legacy exception class.
exceptions.py:22
↓ 2 callers
Function
_df_to_table
Write a DataFrame into a Word table.
report/generator.py:98
↓ 2 callers
Function
_find_steel_design_tables
Discover steel design tables by probing known table names directly.
report/data_collector.py:103
↓ 2 callers
Function
_format_release
Convert a release tuple to a readable label string.
report/data_collector.py:65
↓ 2 callers
Method
_get
Fetch area-object data from SAP2000.
structure_core/area.py:419
↓ 2 callers
Method
_get
Load group data from SAP2000 Returns: self
group/group.py:143
↓ 2 callers
Method
_get_auto_mesh
Get automatic meshing settings
structure_core/area.py:510
↓ 2 callers
Method
_get_cable_data
Get cable data API: GetCableData(Name, CableType, NumSegs, Weight, ProjectedLoad, UseDeformedGeom
structure_core/cable.py:227
↓ 2 callers
Method
_get_frame_local_axis_angle
Get frame local-axis rotation angle Args: frame_name: Frame name Returns: Rotat
geometry/model_extractor.py:692
↓ 2 callers
Method
_get_group_assign
Get groups containing this area object
structure_core/area.py:567
next →
1–100 of 1,543, ranked by callers