Dear community,
Is there a way via the API to explicitly assign a Cross Section Number during "Import from RSECTION" – similar to what is possible in Grasshopper?
Currently, I use the following code for the import:
rfem_app.import_from(
filepath=os.path.abspath('cross_section.rsc'),
import_attributes=common.import_export.RsectionImportAttributes()
)
When importing via the API, the Cross Section No. is automatically assigned (sequentially, starting with the last existing number +1).
My workflow is as follows:
- Many non-standardized cross sections are initially created automatically in RSECTION via the API.
- These cross sections are then automatically imported into the RFEM model.
(The Member/Cross Section assignment I control in Grasshopper.)
Since the cross sections are currently still being optimized and adjusted, it would be helpful for my workflow if I could assign a fixed Cross Section No. during import so that existing cross sections in the model can be specifically overwritten.
Is there already a possibility for this in the API or a recommended workflow?
Thank you very much!
