ATTENTIONThis 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 |
|
Downloads |
Gripes and Goodies Software problems and suggestions |
#1
|
|||
|
|||
about "no select" and "show parameter window from side bar"
1 First problem.
I used to build a big model and make many objects "no select", but when I want to make them "selected", I find it difficult to make them selected one by one. Could someone tell me how to simplify the process? 2 Second problem In ortho view's side bar, in the bar Find Objects' Results List, I can select an object. But if the object is set to "no select", I cannot get its parameter window. So I suggest that when we right click the object in the Results list, we could show its parameter window by right click menu. |
#2
|
||||
|
||||
Manipulate selected (red) objects
Qin Tian,
1. Here is some code you can use in Script to do the job. If you need it more often I would recommend to make yourself an User Command. This code selects all Visual Tools in the model by checking if it is a VisualTool class object. Code:
// SELECT ALL Visual Tools IN MODEL forobjecttreeunder(model()) { if(comparetext("VisualTool", getname(first(classes(a))))) { switch_selected(a, 1); } else { switch_selected(a, 0); } } Code:
// FOR ALL SELECTED (RED) OBJECTS IN MODEL forobjecttreeunder(model()) { // IF OBJECT IS SELECTED AND IF IT IS AN OBJECT if(and(switch_selected(a,-1),eq(4,getdatatype(a)))) { // IF OBJECT IS SET TO "NO SELECT" SET IT TO "SELECT" if(getnodenum(node(">visual/ignoredraw",a)) == 1) { setnodenum(node(">visual/ignoredraw",a),0); } } } I think this command is very useful if you work with big models and have Visual Tools to group you objects. Thanks for sharing Nico! You can find it in the Download section under Commands / select group command. I hope with this information you can make your own solution. I am pretty sure that with the above two code pieces it is possible to do a lot of nice things. Regarding your discussion and suggestion about port connections I am pretty sure you can make User Commands to switch on and off the visualization of port connections (command hideports() of specific objects. If you make such User Commands it would be great, if you could share them with the community. 2. I like your idea with the right click to have some extra functionality. I am not sure if this is technical possible, but I am sure the Flexsim guys know the answer. What I normally do is use the tree to access to the objects if they have the “no select” tick set, because here the right click is possible. Good success. tom the (A)tom P.S.: I found the command hideports(); to toggle the visualization of the ports for an object, but did not found the node which will hold this information. Does anyone know where this node is? I searched in visual and variables but maybe I just overseen it.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions." |
#4
|
|||
|
|||
Hi,
You might want to use the treeview of the model. This will allow access to your objects at any time, no matter if the No-Select is switched. regard, DJ |
Thread | Thread Starter | Forum | Replies | Last Post |
How many types of "viewwindowtype" of Tree? | jellyboy | Q&A | 1 | 03-13-2008 11:30 AM |
can "do not release item" commend be used in source? | KelvinHo | Q&A | 2 | 03-10-2008 12:30 AM |
Which variable stores "Properties -> General ->Flags -> Protected" information? | KelvinHo | Q&A | 1 | 03-06-2008 06:18 AM |
"Getting Started" and "Tutorial" models for v4.01 | Cliff King | Product Announcements | 0 | 12-10-2007 07:34 PM |
Canceling "Set Object Reset Position" | AlanZhang | Q&A | 8 | 10-15-2007 12:04 PM |