rs2.BaseModel module#

class rs2.BaseModel.BaseModel(client, ID)#

Bases: ProxyObject

close()#

Closes the model

Examples

model.close()

See a full example in Code Snippet: Model Manipulation.

save()#

Saves the model

Examples

model.save()

See a full example in Code Snippet: Model Manipulation.

getUnits()#

Get Solid, Hydro and Thermal units for your model from RS2Modeler or RS2Interpreter.

See also

Each of solid units, hydro units and thermal units of your model can be accessed through rs2.Units.

Examples

modeler = RS2Modeler()
model = modeler.openFile(rf"{current_dir}\example_models\SupportStructuralResults.fez")
# Get Solid, Hydro and Thermal units of your model
modelerUnits = model.getUnits()
print("\nModeler Units")
print("\nSolid Units :")
# Get solid units
pprint(modelerUnits.solid_units)
print("\nHydro Units :")
# Get hydro units
pprint(modelerUnits.hydro_units)
print("\nThermal Units :")
# Get thermal units
pprint(modelerUnits.thermal_units)

See a full example in Code Snippet: Get Model Units