A Python helper class to make Siemens Tecnomatix Plant Simulation Path usage accessible.
Setup • Examples • Further documentation • Notice • License
Install via pip:
pip install plantsimpath
Find this package on Pypi.
from plantsimpath import PlantsimPath
station = PlantsimPath(".Models.Model.Station")
station_wo_dot = PlantsimPath("Models.Model.Station")
print(
f'Do Plantsim path always begin with a "."? {"Yes" if station == station_wo_dot else "No"}'
)
attribute_div = station / "ProcTime"
attribute_add = station + "ProcTime"
attribute_init = PlantsimPath(station, "ProcTime")
print(
f"Are all paths the same? {'Yes' if attribute_div == attribute_add == attribute_init else 'No'}"
)
model = station.parent()
is_child = station.is_child_of(model)
print(f"Is {station} a child of {model}? {'Yes' if is_child else 'No'}")
system_path = station.to_path()
print(f"{station} is located at {system_path}")
table_path = PlantsimPath('.Models.Model.Table["ColumnIndex",10]')
object_in_table = table_path / "ProcTime"
print(
f"Is {object_in_table} a child of {table_path}? {'Yes' if object_in_table.is_child_of(table_path) else 'No'}"
)There are further examples in the example folder.
Here is the documentation for plantsimpath
This package is not developed, endorsed, or maintained by Siemens AG. The names "SimTalk" and "Plant Simulation" are trademarks of Siemens AG.
This package is distributed under the MIT License.