question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Patrick Zweekhorst answered

Not able to connect controlpoint to queue

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

FlexSim 16.2.0
agvcontrol pointsconnections
connectionbug.fsm (16.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Arun Kr avatar image
1 Like"
Arun Kr answered

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


patrick-support.fsm (17.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst answered

Dear Arun,

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

Patrick

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.