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.6.tar.gz (5.2 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.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for plantsimpath-0.0.6.tar.gz
Algorithm Hash digest
SHA256 6b9ced0049d75a683f6ea7ac500dc7a701d007f07528eb82aa611dfb495a713e
MD5 734b7e43691ba94ee1a198eb3b453797
BLAKE2b-256 d3ed22ac34029eeb3e91bd78c5fcd3abf348d82f6f6cce50a2f4601eb7139e49

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for plantsimpath-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 54e879443fdc57eed85cd28bad37659d8722769b1a52bded0ce7531f3bbd1619
MD5 67d2aa0287aa9686a5817e7a16887a93
BLAKE2b-256 1f9512d517146fcd98c52034fed7557ec604d13e4bed7b552d794ebbf64faffc

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