hexagon logo

Extracting directional vector of position deviation of elements in FCF...

I'm currently working on extracting additional information from FCF:s using Automation. What I am interested in is the deviation vectors of elements in positional tolerances.

I do seem get the vector components I need from the summery table when all relevant axis and current alignmen is selected. Only problem is I can´t assume that the right axis will always be selected. I can change the alignment used, but I am having difficulty changing the selected axis.

Changing USE_AXIS(139) fields using puttext returns true but does not actually change the value nor the output.

The axis fields (132) can change the axis reported, but I haven´t found a comprehensible pattern to how it responds to input. Just rewriting with the wanted values does not seem to work. Have anybody gotten that to work?

I looked into using Devang, no luck since it uses the workplane instead of anything sensible(seriously, what is up with that?).

I looked into using the datum shift, however it seems to me it only gives half the answer as it works from the reference coordinate system basis. I would then first have to build the base from the reference set and the add the datumshift to get out anything useful. That feels like serious work as the different elements will lock different aspects of translation/rotation. (There do seem to be such a matrix in the exported XML-file.)
Parents
  • Yes. Slight smile The deviation vectors I'm after are calculated using the TP alignment after best fit. The measured values is in the current alignment system, not the same values. For instance I can evaluate TP using a local hole as reference. The hole will be displaced relative the global system I'm using, and a best fit will be done to rotate in the hole pattern. Both will effect the resulting deviations.

    I have a solution that seems to work, but it´s rather process heavy so I would still prefer a more straightforward way. Slight smile I'm exporting an XML data file of the program and extract the transformation matrix of the FCF and use that to calculate the positions in the local TP-system to get out the deviation vectors I need. Not pretty at all...
Reply
  • Yes. Slight smile The deviation vectors I'm after are calculated using the TP alignment after best fit. The measured values is in the current alignment system, not the same values. For instance I can evaluate TP using a local hole as reference. The hole will be displaced relative the global system I'm using, and a best fit will be done to rotate in the hole pattern. Both will effect the resulting deviations.

    I have a solution that seems to work, but it´s rather process heavy so I would still prefer a more straightforward way. Slight smile I'm exporting an XML data file of the program and extract the transformation matrix of the FCF and use that to calculate the positions in the local TP-system to get out the deviation vectors I need. Not pretty at all...
Children
No Data