question

David Wang avatar image
0 Likes"
David Wang asked Arun Kr commented

Can I create AGV path by using control points with flexscipt? How?

I'm trying to create a layout of a fab. The data I got is the location of all the control points and informations of map segments. For instance, segment id, type(line or turn), start point id, end point id, direction(turn left or right) and length(length of the path) are the informations I can get from map segments.

Ex: Map segment

segment id: A10_10_11

type: line

start_point_id: A10_10

end_point_id: A10_11

direction: None

length: 9167mm

So my idea is to crate the control points first. Then create AGV path by using the location of control points. I don't know my idea is possible or not. I hope someone can sole the problem or suggest some other ideas to achieve my goal. Thank you!

FlexSim 23.0.3
flexscript agv
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Arun Kr commented

You should use this syntax:

Object path=Object.create("AGV::StraightPath"); //or AGV::CurvedPath
path.setProperty("StartLocation",Vec3(1,1,0));
path.setProperty("EndLocation",Vec3(5,10,0));

To find out the property names, open some Property tables from the Properties panel with the path selected where you'll see these listed:

Color, Location, Radius, StartAngle, SweepAngle, IsTwoWay, AccumulationType, AGVOrientation.

For control points it's similar:

Object cp=Object.create("AGV::ControlPoint");
cp.setProperty("Location",Vec3(1,1,0));

with properties MaxAllocations and DeallocationType

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Arun Kr avatar image Arun Kr commented ·

@David Wang you can also refer the kiva system demo model to see how the agv path and control points are being created dynamically in the model.

Regards,

Arun KR

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.