ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-23-2010
Gi Cha Gi Cha is offline
Flexsim User
 
Join Date: Jun 2010
Posts: 8
Downloads: 11
Uploads: 0
Thanks: 15
Thanked 0 Times in 0 Posts
Rep Power: 0
Gi Cha is on a distinguished road
Default does so() refer to switch_selected() ?

why does this not work the way i want it to? create multiple racks, reference any of them and try to use contextdragconnection() to connect them. it will "select" the rack node i reference, but it seems like so() does not refer to it.


attached is a screenshot that will clarify what i'm talking about.
(in this particular model, it would connect rack1 for some reason even tho rack3 was "selected).

treenode ss1 = node("/Rack3",model());
treenode qq = node("/Queue5",model());
switch_selected(ss1,1);
contextdragconnection(so(),qq,"A");


my goal is to be able to select MULTIPLE objects (all 3 racks) and connect them to another object (such as a queue or NN), using contextdragconnection(). using switch_selected() will "select" all the objects, but i'm not sure if so() references all the selected objects...am i using the wrong command?
Attached Thumbnails
Click image for larger version
Name:	selectedobject.jpg
Views:	172
Size:	168.6 KB
ID:	1144  
  #2  
Old 08-23-2010
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

so() refers to the object that was designated by the right click option Edit > Designate This Node (so). It does not refer to whether an object is selected in a red bounding box.

contextdragconnection() connects one object to one other object. You can use the groupconnectto() and groupconnectfrom() commands to connect one object to/from every selected object in the model.
The Following User Says Thank You to Phil BoBo For This Useful Post:
Gi Cha (08-23-2010)



All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.