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.3.tar.gz (4.3 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.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plantsimpath-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 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.3.tar.gz
Algorithm Hash digest
SHA256 ca81bd717f38f6fda152169a4584105f0fd9ce6c8db404c2b4d6ce12bbee5e2e
MD5 6bcda422e2eb8e4b0994221d9605a319
BLAKE2b-256 16404e7bc77e9540e449031bcccebcc699ce8d370ac0576ef5e8c7ed574fff2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plantsimpath-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5957a31859f9e31862e50f8b2aa7f71b4821ac99e1e73cdac1f8408fbb3ada1
MD5 659bcfe7e17a2f276b2a7d50d97ae4fd
BLAKE2b-256 f4d2fab6c11b88944364f127a364ac0e8e4406440f16b3c6e558107e819a1a08

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