You can save your objects (including methods) as object files into Windows. Then, you import them into your models. Another option is to include all your routines into a folder and save it as a Library to include it in your models using the Manage Class Library button (Right-click on a folder to check this option).
have a look in templates (menu item in the method editor and as a folder in the plant simulation installation).
Make a txt-file from your program and format it like the other text files in the templates folder, then you can select your method with the templates menu of the method editor in each project.
freelance simulation specialist
For example, let´s say I created an object that will have the cycle time counted through an internal method so my method would contain the syntax:
If I do that, the cycle time will be counted without consider if the object is paused or failed.
To resolve that I would like to create an API called wait_cycle_time which will count the operating time discarding pauses and pailures autolatically. The syntax to call the API would be
Of course my appications have much more complexes methods than the example and that kind of syntax would be writen in some part of those methods.
If I understood you right,
you are resolving the net cycle time,
w/o breakdown times / pauses
through a selfdesigned method called "wait_cycle_time"
I guess, what @araujopaulo posted will help
you organize these kind of frequently used methods in your
present and future models.