question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked Jason Lightfoot edited

GIS point image

Hi. Is it possible to change the GIS point image or 3D shape thru FlexScript? I have tried to edit the tree values but I guess it needs some update function. I'd like to have different image for the starting and ending points in in the model attached.

createGISPoints.fsm

FlexSim 23.2.0
gis
creategispoints.fsm (57.8 KiB)
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
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can change the 3D shape using this code (and toggle off the point drawing):

string shapename = "fs3d\\General\\Box.3ds";
startingPoint.setProperty("Shape",shapename);
startingPoint.setProperty("DrawPoint",0);
startingPoint.size=Vec3(6,6,6);
5 |100000

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

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.