Not able to connect controlpoint to queue

Not able to connect controlpoint to queue

patrick_zweekhorst
Collaborator Collaborator
195 Views
2 Replies
Message 1 of 3

Not able to connect controlpoint to queue

patrick_zweekhorst
Collaborator
Collaborator

[ FlexSim 16.2.0 ]

I am making a model in which I use the AGV module. I use a script to make a queue and a controlpoint in a container. After this is done I want to A connect the controlpoint to the queue, but this is not working. Is this a bug or is this intentionally done? I have attached an example model ( connectionbug.fsm ) where I want to connect Queue112 to ControlPoint213, but this is not working. The code that I used to make the objects is in the script window.

Thanks in advance

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

arunTTT2P
Advocate
Advocate
Accepted solution

Dear Patrick,

I didn't understand, why the connection is not happening.

Instead of createcopy(), when I used createinstance() it's connecting. Someone from FlexSim can give a better answer to this behaviour.

treenode container1	= node("BasicFR1", model());
treenode container2 = node("BasicFR1/BasicFR2", model()); 
treenode container3	= node("BasicFR1/BasicFR2/BasicFR3", model());
treenode bufferObject 		= node("Queue15", model());
treenode controlpointObject = node("ControlPoint2", model());

treenode buffer = createinstance(bufferObject,container3);
setloc( buffer, 2, 2, 0 );
		
treenode controlPoint = createinstance(controlpointObject,container3);
setloc( controlPoint, 3, 3, 0 ); 
contextdragconnection( buffer, controlPoint, "A" );

Regards

Arun KR

Message 3 of 3

patrick_zweekhorst
Collaborator
Collaborator

Dear Arun,

Thanks for your quick answer. I will use the createinstance instead of createcopy.

Patrick

0 Likes