& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
[ FlexSim 20.1.3 ]
Hi Support,
I am not able to detach the trailer from the driver after the agv custom travel before the driver goes back to the home location using the normal travel activity.
Also attaching the sample model for reference. agv1.fsm
Regards,
Arun KR
Solved! Go to Solution.
After you have detached a trailer, you must move the object into another container like the model.
following custom code activity source code.
treenode item = token.item; Object itemObj = item; treenode traveler = Model.find("TaskExecuter1"); Object travelerObj = traveler; Vec3 curLoc =itemObj.location.project(traveler,model()) transfernode(item,model()); itemObj.location = curLoc;
Thanks for the quick reply and it's working.
But if we have the item first placed on the model, then perform an attach followed by a detach. The item will be placed on the new location as per the trailer's offset position. How is the item transfer taking place in this case, without using the above-mentioned custom code? Is this a bug? Pls, see the attached model.
Regards,
Arun KR
It is more a matter of the container for the item. In your second example the attached item stays as a subnode at the control point 3. While you inserts the item inside a taskexecuter, the items stays as a subnode at the taskexecuter. The detach method has got parts included which keeps the current location in model and project it to the current container. If you want to check the behavior yourself, look into the tree where the item is a subnode of.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name