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 > User Development
Downloads

User Development User developed add-ons to Flexsim

  #1  
Old 08-08-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default Parent and Child Objects

All,

I am contemplating the creation of a parent child relationship with objects and I wanted to get your feed back first.

The idea would be that you could toggle an object to be the child of another object in the model of the same class. The child object would then be updated with all of the variables and visual attributes (- location) of the parent object at certain times. Those times could be OnReset, User Specified, On Flexscript Build, etc.

I think that this would be a great addition as it would reduce the amount of copying variables and labels that happens when building a model.

I want to know what you think and how you feel that it should be implemented. What parameters would be copied, if labels should be included, if visuals should be included, etc.

Thanks,
Brandon
__________________
thats not normal.
  #2  
Old 08-08-2008
Alex Christensen Alex Christensen is offline
Flexsim Technical Support
 
Join Date: Nov 2007
Location: Provo, UT
Posts: 96
Downloads: 41
Uploads: 8
Thanks: 29
Thanked 141 Times in 56 Posts
Rep Power: 298
Alex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to beholdAlex Christensen is a splendid one to behold
Default

If I understand you correctly, if you have 100 identical objects in a model, would this prevent you from having to make the same change 100 times? Maybe this could work kind of like the groups, except you specify the parent of a group, then push a button to copy your updates to all the other members of the group. It could be done by copying stuff from the highlighted to the selected objects, but it might be tricky to select all the objects to copy to without forgetting one or two.
  #3  
Old 08-11-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

Alex,

Currently you have to select all the objects in the model that you want to copy to and select the copy from highlighted button to copy variables, shapes, or labels from one object to many others.

The idea of parent and child objects would be that the child object would be toggled as a child of the parent once and then would be updated every time the parent was changed. Effectively making it so that you never had to apply the changes manually again.

I think that it would be effective to have the parameters page of a child open up to a GUI that told you that it was a child and then offered the option of going to the parent or removing the parent/child relationship and opening up the normal parameters GUI for the object.

Brandon
__________________
thats not normal.
  #4  
Old 08-11-2008
Danny Pavan Danny Pavan is offline
Flexsim User
 
Join Date: Aug 2007
Location: Work: Hamilton, Ontario, Canada
Posts: 34
Downloads: 30
Uploads: 0
Thanks: 70
Thanked 38 Times in 17 Posts
Rep Power: 179
Danny Pavan will become famous soon enoughDanny Pavan will become famous soon enough
Default

Brandon,

I think this would be a useful feature. I've done models where I've developed an object and subsequently made many copies of that object for the model. As model development progressed I've had to go back and change the functionality of the base object and its copies by either selecting and copying (and hoping I updated all the copies) or by writing a user function that deleted all copies and than made new copies of the modified base object. Both ways are a bother.

In those cases, I copied all variables, all labels, size, and Visual and Shape Factors. It would be good if there were check boxes on the child to specify which of those should be copied.

Danny
The Following User Says Thank You to Danny Pavan For This Useful Post:
Brandon Peterson (08-11-2008)
  #5  
Old 08-11-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

I agree that it is a good idea to have inheritance in Flexsim. I build already some hierarchical models where I have the same structure in Visual Tools and it always took some time to copy modified code to all the objects, even if I did it by code. So I like the idea and would appreciate to have it.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following User Says Thank You to Tom David For This Useful Post:
Brandon Peterson (08-12-2008)
  #6  
Old 08-13-2008
Dirk-Jan Dirk-Jan is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Utrecht, Netherlands
Posts: 43
Downloads: 35
Uploads: 0
Thanks: 11
Thanked 22 Times in 16 Posts
Rep Power: 170
Dirk-Jan will become famous soon enough
Default

I would applaud (any) enhanced inheritance. I think it would have made our lives easier when updating models from our custom libraries.

But I am really interested in how it is used. Normally you want to create the relationship through a user library as I think it could get messy if you hvae parent-child relations within the model level. But that would mean that we always need to load the userlibrary to get the inheritance working?

So I am not completely convinced at his point.....

Regards,
DJ
The Following User Says Thank You to Dirk-Jan For This Useful Post:
Brandon Peterson (08-13-2008)
  #7  
Old 08-13-2008
Anthony Johnson's Avatar
Anthony Johnson Anthony Johnson is offline
Manager of Product Development
 
Join Date: Jul 2007
Posts: 440
Downloads: 86
Uploads: 4
Thanks: 171
Thanked 899 Times in 288 Posts
Rep Power: 735
Anthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond reputeAnthony Johnson has a reputation beyond repute
Default

I agree with everyone that this would be a very cool feature, and although I think Brandon would do a good implementation through Flexsim's content, I think a truly great implementation would require some engine support. At the same time, like DJ I have some doubts, or at least I think there are some hurdles to overcome, in regards to the implementation. For example what happens if the parent object is not saved in the same file as the child, in the case of a user-library-to-model parent-child relationship. Also, do we allow multiple levels of inheritance, where a given child can have a parent and a grandparent, etc. The other thing that is going to be tricky is allowing the user to visualize/modify these relationships, because I can see how a user could easily get very mixed up as to who is inheriting from whom, and when he modifies one object, and all of a sudden lots of other objects have been modified, how does Flexsim convey that information to the user?
The Following User Says Thank You to Anthony Johnson For This Useful Post:
Brandon Peterson (08-13-2008)
  #8  
Old 08-14-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

All,

My feeling on this is that the Parent / Child relationship would only be in the current model and would not include the user library (unless you could get the user library to automtically load with a model). This way you don't have to worry about changes made outside of the model. Unless anyone sees things differently, I would also limit the inheritance to the basic parent and child, no grandparents, uncles, cousins, half-brothers, or any other type of relationships.

Even with these simplifying assumptions there is still a lot of complexity to the implementation and a lot of functionality that could be included.

I have a trip next week and might find some time to do an example, so the more people that speak there mind now the better.

Brandon
__________________
thats not normal.
  #9  
Old 08-23-2008
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

This topic was raised once before on the community site, and generated a request for the future development list. I still believe it would be a nice elegant implementation with very little difficulty in development (as verified by Eamonn Lavery). Here's the related post.
The Following User Says Thank You to Cliff King For This Useful Post:
Brandon Peterson (10-01-2009)
  #10  
Old 01-19-2011
Nischith Kashyap's Avatar
Nischith Kashyap Nischith Kashyap is offline
Flexsim User
 
Join Date: Nov 2010
Location: Wollongong, Australia
Posts: 51
Downloads: 26
Uploads: 0
Thanks: 19
Thanked 0 Times in 0 Posts
Rep Power: 118
Nischith Kashyap is on a distinguished road
Default Hello

Hello

I have nodes in my model with different properties ( coordinates x and y ) which i am reading from a database, and i would like to replicate them for all the coordinates. Is there any way possible. Each node is like a stop and i have the list of stops as coordinates in a data base. I would like flexsim to read this database ( which i have sorted ) and replicate all the nodes to their respective coordinates.

Any help please ??



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.