Hello,
I need some help on a rather involved problem to assist with scalability on a complex model. I have a user library object (visual tool containing an assortment of combiners, queues, and separators) that needs a lot of changes to occur in the dropscript (or maybe another method, if better). Once the object is dragged to the model, it should prompt the user for the ID number of the new object (think hotel room number). That ID number then needs to be written on labels of the visual tool and its child objects, and the visual tool name needs to change to reflect the ID. Finally, some A and S connects need to be made from other objects already in the model to a few of the child objects.
The generic pseudo-code below is basically how I have approached it. Setnodestr worked at one point, but it is messed up now due to meddling. It is backing out of the dropscript and diving down to the visual tool labels, borrowing from the Dropscript examples. There are also issues with how to change the new object's name without permanently changing the user library object (or how to change it back after creating the object).
Any guidance is appreciated!
treenode newitem = dropuserlibraryobject(node("..>item",c)); userinput(globalvariableA,"Please input text value for label A"); setnodestr(node("..>item/labels/labelA", c), globalvariableA); setnodestr(node("..>item>subitem/labels/labelA", c), globalvariableA); contextdragconnection(externalobject1,item,"A"); contextdragconnection(item,externalobject2,"A"); contextdragconnection(externalobject3,item,"S"); replacename(node("..>item",c),"item",globalvariableA); return newitem;