flexsim_create_objects
Batch create FlexSim objects with unique names, positions, and properties. Verifies each object and enforces count limits for window backend models.
Instructions
Create objects in the FlexSim window in batch (window backend only).
Wraps Object.create + name + setLocation + setProperty with per-object verification.
Names must be unique (FlexSim allows duplicates, this tool refuses them unless
overwrite=True, in which case the old object is destroyed first).
Student (100 objetos, docs oficiales FlexSim): antes de crear lee # CNT-limite
_model_object_count(); si actual+len(batch)>100 devuelve error SIN crear nada # CNT-limite
(atómico); si actual+len>=85 procede pero antepone warning al resultado. Solo ventana. # CNT-limite
Args:
objects: [{cls, name, x, y, z, properties}]. Class e.g. Source, Queue,
Processor, Sink, Operator, Rack, Conveyor::StraightConveyor.
overwrite: destroy Model.find(name) first when it already exists.
Example:
objects=[{cls: Source, name: Source1, x: 0}, {cls: Queue, name: Queue1, x: 6}]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |