Skip to main content

A Python helper class to make Plantsim Path usage accessible.

Project description

plantsimpath

A Python helper class to make Siemens Tecnomatix Plant Simulation Path usage accessible.

SetupExamplesFurther documentationNoticeLicense

Setup

Install via pip:

pip install plantsimpath

Find this package on Pypi.

Examples

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.

Further documentation

Here is the documentation for plantsimpath

Notice

This package is not developed, endorsed, or maintained by Siemens AG. The names "SimTalk" and "Plant Simulation" are trademarks of Siemens AG.

License

This package is distributed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plantsimpath-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plantsimpath-0.0.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file plantsimpath-0.0.4.tar.gz.

File metadata

  • Download URL: plantsimpath-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plantsimpath-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0febb52483b41724e51d811e80c62244f5436d64d14cbd7a05b63f3105a58968
MD5 ed64270fcf34fc43097cd4868190ec8c
BLAKE2b-256 5a2fe2d96c4b1ed915792b9b2b42106f0ce8674964bcdc72ff6ea4105e5a1c51

See more details on using hashes here.

File details

Details for the file plantsimpath-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: plantsimpath-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for plantsimpath-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0c333c3cdfc80f6c32c1506787190f0d588bafcae691060fdae9a06b6d24af86
MD5 af700e9d44176cf5ed2f3e1ac34cfdfc
BLAKE2b-256 f130d09138e61f02a51d80fc3cb711c28ab21205389261b8ba99d4c115874a16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page