PDA

View Full Version : Canceling "Set Object Reset Position"


AlanZhang
08-29-2007, 01:36 PM
Is there anyway to cancel "Set Object Reset Position"? That is, I use "Set Object Reset Position" in the pop-up menu. But later I do not want to reset the object's position. It bothers me after I copy the object. Maybe it is really simple, but I just cannot find it.

Thanks.

Alan

Dustin Derrick
08-29-2007, 03:52 PM
According to my knowledge there is not a simple check box or button that you can push in order to cancel the "Set Object Reset Position" option. However, if you know your way around the Tree window it is pretty easy to accomplish. If you open up the tree and dive > into the object that you want to adjust, then you click the + sign next the the variables node and scroll down near the bottom you will notice a node called "resetposition". If you click on the + sign located to the left of that node, 9 nodes will appear below it. Simply delete these 9 nodes found below and this will disable the "Set Object Position" option on the object.

Dustin Derrick
Flexsim Support

AlanZhang
08-29-2007, 05:35 PM
Thank you so much! That is all that I want to know.

Alan

Cliff King
10-13-2007, 07:37 AM
I was questioning whether we needed a "Clear Object Reset Position" option or not, and decided we probably did not because you can always reset the position again if it is wrong. I'm curious why you wanted to clear the position?

Tom David
10-13-2007, 11:52 AM
Cliff,

You are right, you could reset the position again, but maybe sometimes this is unhandy and you have some unnecessary nodes.
The case which comes to my mind is with an operator. First in my model I had a 'free' operator (no path system), but I liked to give him a start position (Set Object Reset Position).
Later I implemented a path system and on a path system the operator normally starts a the node he is assinged to. But not, if he has a reset position. Right, you could give him the new Reset Position.
But the Reset Position is not needed any longer, so I prefer to delete it. I don't mind to do it in the tree, by the way ;).

Maybe if you have a dynamice pathsytstem, than you like to delete the Reset Position, but this can also be done by code (delete the nodes).

So I am not sure if we need a "Clear Object Reset Position". :confused:

Kris Geisberger
10-13-2007, 12:11 PM
Because the 'Set Object Reset Position' is between Reset Object and 'Set as so()' options, I find sometimes I (and others) click it by accident when in a rush. Without knowing the variables tree well the more basic approach to clear the reset position is to create a new object of the same class and Copy from Highlighted > All Variables, then duplicate connections. In a model with elaborate connections, this approach could take a while. Just a thought - definitely not the strongest argument to give it a high priority.

AlanZhang
10-15-2007, 09:51 AM
In my case, the situation is that I firstly use the option because it is handy. In my model, I have many similar objects. The way I do it is to create one object and test it to make sure it is good. But if I uses the Set Object Reset Position for the object, when I copy and paste the object, those Reset Positions are also copied. And sometimes it would be tedious to correct them one by one. For my situation, an alternative way would be not duplicating those Reset Positions when you do copy and paste.

Alan

Kris Geisberger
10-15-2007, 11:23 AM
Sorry, I know I skipped some details. When you 'Copy from Highlighted' > 'All Variables', Flexsim will NOT copy the object reset positions. Now this does not help if you duplicated the original object, however if you drag-drop new objects of the same class as the original you can Copy All Variables and still be free of the original reset position.

Kris

AlanZhang
10-15-2007, 12:04 PM
I see. So one way would be saving the object to a library, and manually delete the reset position for the library object , then dragging the object into the model.

To summary:
1.
Duplicating objects will copy everything of the object except the connections to the rest objects in the model. Same as "Add to User Library".
2.
You can cancel the reset position by deleting all nodes under the ">variables/resetposition" in the object tree.
3.
Using 'Copy from Highlighted' > 'All Variables' will not copy the object reset position. It will only copy the immediate child nodes of the variables tree within the object (not the grand child nodes, or grand grand child nodes etc.).
4.
Different from Copy Variables, Copying Labels from Highlighted will copy recursively, which means will copy everything (child, grand child, grand grand child etc.) of the labels tree within the object.

Alan