question

CH L avatar image
0 Likes"
CH L asked CH L commented

Problem found on command "cpdistance"

I found a problem of using “cpdistance” to get the distance between control points.

The actual distances between (cp1 & cp4) as well as (cp5 & cp6) are the same in the model “cpdistance.fsm”. Moreover, all paths are 2-way paths.

However, the distance values returned from the command (in process flow) are different. This problem was found in both of FlexSim v.18.2 and v.19.1.

cpdistance.fsm

Any advice?

Thanks!

FlexSim 19.1.2
flexsim 19.1.2flexsim 18.2.3cpdistance
cpdistance.jpg (41.6 KiB)
cpdistance.fsm (21.7 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

tannerp avatar image
0 Likes"
tannerp answered CH L commented

The paths are not connected properly in your model, so I think that the distance that is being returned is actually the distance shown in this image:

If you connect the path properly (as shown in image below), it returns the correct distance.

Here's your updated model. It should be working now.

cpdistance_1.fsm


· 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.

CH L avatar image CH L commented ·

Thanks!

0 Likes 0 ·