How to modify the length and width properties of Barrier in Astar with code so that the modified length and width properties can be displayed in the 3D model
How to modify the length and width properties of Barrier in Astar with code so that the modified length and width properties can be displayed in the 3D model
In order to solve your problem better and faster, you can contact our local China partner (BJCSN), we will provide you with professional FlexSim technical Q&A. contact information: [email protected]; QQ:1093796825;Thanks
I have found a related question about adding new barriers to AStar. There @Matt Long pointed out that a change gets executed after a reset of the model. If you intend to change barrier sizes dynamically while running the model, I assume it won’t work, because you can’t reset partly nodes in the tree.
treenode barrier = createinstance(node("/astar/Barrier",library()),model);
I have generated barrier with that code and modified the barrier's length and width,however,the modified barrier in 3D model is not changed,and still the same.
So i want to get a way to modify the shape of barrier.
Thanks!
Using createinstance() is the correct way to add a barrier now.
Here is how you would create it:
treenode barrier = createinstance(node("/astar/Barrier",library()), node("AStarNavigator", model())); function_s(barrier, "setPointCoords", 0, 0, 0, 0); function_s(barrier, "setPointCoords", 1, 10, 10, 0);
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved