question

Jason Botha avatar image
0 Likes"
Jason Botha asked Joerg Vogel edited

Plane disappears during model run

Hi there,

During my model run i increase the size of a plane with a basic fixed resource inside.

It all works fine and then every now and then the plane disappears completely and has a X, Y and Z location of -1.#R.

Does anyone know why that will happen? Below is a screen shot of the shapes location details

FlexSim 17.1.4
shapesetsize
· 3
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

can you post the code of the

Vec3.setSize 

command line. Do you parse integer, double or variants into the method for the components?

0 Likes 0 ·
Jason Botha avatar image Jason Botha Joerg Vogel commented ·

Hi Jorg,

Here is the code i use to increase the size of the plane in the x direction.

I parse a double value.

Object current = param(1);
treenode activity = param(2);
Token token = param(3);
treenode processFlow = ownerobject(activity);


Object obj = current.up;  // This is a reference to the plane that the BasicFR sits on
Vec3 referencePosition = Vec3(0, 0, 0); 
Vec3 prevLoc = obj.getLocation(referencePosition);
obj.setSize(obj.size.x + token.Advance_Meters, 6, 1); // token.Advance_Meters is a double 
obj.setLocation(prevLoc, referencePosition);

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jason Botha commented ·

Maybe the error is associated with this question. If the problem still exists, you can parse only numbers in the method setSize of type: double, not a combination of integers and doubles.

0 Likes 0 ·

1 Answer

·
David Seo avatar image
0 Likes"
David Seo answered

You need to upload your model if you would receive a good answer for it.

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.