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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2008
Martijn van Oostenbrugge's Avatar
Martijn van Oostenbrugge Martijn van Oostenbrugge is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Posts: 71
Downloads: 12
Uploads: 0
Thanks: 44
Thanked 44 Times in 24 Posts
Rep Power: 267
Martijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to allMartijn van Oostenbrugge is a name known to all
Default Set reset position

I'm working on an object in which I can dynamically set the location of a network node. To test it, I made a simple example where I set the location on the OnReset Trigger of the Network Node. However, the 'modified' variable of the DefaultNetworkNavigator is not set to one and thus Dijkstra's algorithm is not re-evaluated to determine the shortest path. I've adjusted the OnReset (and toggled it as Flexscript) of the DefaultNetworkNavigator to always set this variable to one. So, it works, but still I have to reset twice to make sure the new location is used in the algorithm. Is there a better way to solve this?

Thanks,
Martijn
Reply With Quote
  #2  
Old 02-25-2008
Paul Toone's Avatar
Paul Toone Paul Toone is offline
Flexsim Technical Support
 
Join Date: Jul 2007
Posts: 13
Downloads: 59
Uploads: 31
Thanks: 0
Thanked 7 Times in 4 Posts
Rep Power: 159
Paul Toone is on a distinguished road
Default

Martijn,

Call the optimizenetwork(); command from the OnRunStart trigger. (Tools | Model Triggers | On Run Start)

That will update the Dijkstra's algorithm and hopefully solve the issue you are having.

Thanks,

Paul
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Canceling "Set Object Reset Position" AlanZhang Q&A 8 10-15-2007 12:04 PM
How to display 3D text/shapes in a static position regardless of the view angle. Regan Blackett Tips and Tricks 0 08-03-2007 10:51 AM


All times are GMT -6. The time now is 05:45 AM.


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