CrossSectionApi
All URIs are relative to http://localhost
| Method | Description |
|---|---|
| add_reinforced_cross_section | Add a new reinforced cross-section to the project from embedded geometry |
| get_reinforced_cross_section_data | Get reinforced cross-section with full geometry (IOM format) |
| import_reinforced_cross_section | Import reinforced cross-section from template |
| reinforced_cross_sections | Get reinforced cross sections |
add_reinforced_cross_section
RcsReinforcedCrossSection add_reinforced_cross_section(project_id, reinforced_cross_section_data=reinforced_cross_section_data)
Add a new reinforced cross-section to the project from embedded geometry
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Project ID | |
| reinforced_cross_section_data | ReinforcedCrossSectionData | Reinforced cross-section with embedded geometry. Materials can be referenced by name (must exist in project) or by ID. | [optional] |
Return type
Example
import ideastatica_rcs_api
from ideastatica_rcs_api.models.rcs_reinforced_cross_section import RcsReinforcedCrossSection
from ideastatica_rcs_api.models.reinforced_cross_section_data import ReinforcedCrossSectionData
from ideastatica_rcs_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ideastatica_rcs_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with ideastatica_rcs_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ideastatica_rcs_api.CrossSectionApi(api_client)
project_id = 'project_id_example' # str | Project ID
reinforced_cross_section_data = ideastatica_rcs_api.ReinforcedCrossSectionData() # ReinforcedCrossSectionData | Reinforced cross-section with embedded geometry. Materials can be referenced by name (must exist in project) or by ID. (optional)
try:
# Add a new reinforced cross-section to the project from embedded geometry
api_response = api_instance.add_reinforced_cross_section(project_id, reinforced_cross_section_data=reinforced_cross_section_data)
print("The response of CrossSectionApi->add_reinforced_cross_section:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CrossSectionApi->add_reinforced_cross_section: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/1/projects/{projectId}/cross-sections/reinforced-cross-sections
Authorization
No authorization required
HTTP request headers
- Content-Type: application/xml, text/xml, application/+xml, application/json-patch+json, application/json, text/json, application/+json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_reinforced_cross_section_data
ReinforcedCrossSection get_reinforced_cross_section_data(project_id, reinforced_css_section_id)
Get reinforced cross-section with full geometry (IOM format)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Project ID | |
| reinforced_css_section_id | int | Reinforced cross-section ID |
Return type
Example
import ideastatica_rcs_api
from ideastatica_rcs_api.models.reinforced_cross_section import ReinforcedCrossSection
from ideastatica_rcs_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ideastatica_rcs_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with ideastatica_rcs_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ideastatica_rcs_api.CrossSectionApi(api_client)
project_id = 'project_id_example' # str | Project ID
reinforced_css_section_id = 56 # int | Reinforced cross-section ID
try:
# Get reinforced cross-section with full geometry (IOM format)
api_response = api_instance.get_reinforced_cross_section_data(project_id, reinforced_css_section_id)
print("The response of CrossSectionApi->get_reinforced_cross_section_data:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CrossSectionApi->get_reinforced_cross_section_data: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/1/projects/{projectId}/cross-sections/reinforced-cross-sections/{reinforcedCssSectionId}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
import_reinforced_cross_section
RcsReinforcedCrossSection import_reinforced_cross_section(project_id, rcs_reinforced_cross_section_import_data=rcs_reinforced_cross_section_import_data)
Import reinforced cross-section from template
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Project ID | |
| rcs_reinforced_cross_section_import_data | RcsReinforcedCrossSectionImportData | Import data containing settings and template | [optional] |
Return type
Example
import ideastatica_rcs_api
from ideastatica_rcs_api.models.rcs_reinforced_cross_section import RcsReinforcedCrossSection
from ideastatica_rcs_api.models.rcs_reinforced_cross_section_import_data import RcsReinforcedCrossSectionImportData
from ideastatica_rcs_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ideastatica_rcs_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with ideastatica_rcs_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ideastatica_rcs_api.CrossSectionApi(api_client)
project_id = 'project_id_example' # str | Project ID
rcs_reinforced_cross_section_import_data = ideastatica_rcs_api.RcsReinforcedCrossSectionImportData() # RcsReinforcedCrossSectionImportData | Import data containing settings and template (optional)
try:
# Import reinforced cross-section from template
api_response = api_instance.import_reinforced_cross_section(project_id, rcs_reinforced_cross_section_import_data=rcs_reinforced_cross_section_import_data)
print("The response of CrossSectionApi->import_reinforced_cross_section:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CrossSectionApi->import_reinforced_cross_section: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/1/projects/{projectId}/cross-sections/import-reinforced-cross-section
Authorization
No authorization required
HTTP request headers
- Content-Type: application/xml, text/xml, application/+xml, application/json-patch+json, application/json, text/json, application/+json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
reinforced_cross_sections
List[RcsReinforcedCrossSection] reinforced_cross_sections(project_id)
Get reinforced cross sections
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| project_id | str | Project ID |
Return type
List[RcsReinforcedCrossSection]
Example
import ideastatica_rcs_api
from ideastatica_rcs_api.models.rcs_reinforced_cross_section import RcsReinforcedCrossSection
from ideastatica_rcs_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ideastatica_rcs_api.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with ideastatica_rcs_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ideastatica_rcs_api.CrossSectionApi(api_client)
project_id = 'project_id_example' # str | Project ID
try:
# Get reinforced cross sections
api_response = api_instance.reinforced_cross_sections(project_id)
print("The response of CrossSectionApi->reinforced_cross_sections:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CrossSectionApi->reinforced_cross_sections: %s\n" % e)
Code Samples
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/1/projects/{projectId}/cross-sections/reinforced-cross-sections
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]