I have a global table that contains a series of pieces of equipment, quantity, and x/y positions. The desire is to simply run a snippet of custom code at the beginning of the process flow that will then iterate through each resource, and then create an object in the model to represent the equipment, while also adding them to their associated group. I have been attempting to use the drawobject function to no avail.
Below is my code block so far:
for (int i = 1; i <= totalEquipment; i++){
int j = 0;
int numResource = Table("Equipment")[i]["Quantity"];
int xPos = Table("Equipment")[i]["xPos"];
int yPos = Table("Equipment")[i]["yPos"];
while (j < numResource){
//CREATE OBJECT HERE
//ASSIGN OBJECT TO GROUP
}
}