question

Sam avatar image
0 Likes"
Sam asked Jason Lightfoot edited

use flexsript to adjust curved path

I am trying to adjust the side of a curved path using flexscript. Is it possible to use flexscript to mode the path as if I am toggling it using the green button?

1722461459443.png

I can adjust the radius with the flowing line of code.

setvarnum(path,"radius",300);









FlexSim 23.0.15
flexscriptpathcurved path
1722461459443.png (21.2 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

Use:

path.setProperty("Radius",300);

If you're trying to build models from script I'd recommend using the FlexQL INSERT INTO Objects() clause.

5 |100000

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