create processor with code

create processor with code

sharon_l3
Not applicable
114 Views
2 Replies
Message 1 of 3

create processor with code

sharon_l3
Not applicable

[ FlexSim 18.1.1 ]

I used the following code to create conveyor:

createinstance(node("/conveyor/StraightConveyor", library()),model());

How can I modify the code to create a processor? (I don't know how to check the path in library)

0 Likes
Accepted solutions (1)
115 Views
2 Replies
Replies (2)
Message 2 of 3

sharon_l3
Not applicable
Accepted solution

got it.

createinstance(node("/fixedresources/Processor", library()),model());

Message 3 of 3

Matthew_Gillespie
Autodesk
Autodesk

You can also put a question mark (?) at the start of the path to search the library for an object with the specified name:

createinstance(library().find("?Processor"), model());


Matthew Gillespie
FlexSim Software Developer

0 Likes