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.)
  • 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.)


    Post some code
  • Don´t have access to the code here I'm afraid. Right now I´m just doing tests to see what works.

    Nice coding. Slight smile What does the setexpression in the end do?

    I have extracted general point data and transformed to the alignment I wanted, no issue there(so far). My issue is with regards to deviation values in the FCFs, including datum shift. The values you get in the summery table below on a TP tolerance.
  • Don´t have access to the code here I'm afraid. Right now I´m just doing tests to see what works.

    Nice coding. Slight smile What does the setexpression in the end do?

    I have extracted general point data and transformed to the alignment I wanted, no issue there(so far). My issue is with regards to deviation values in the FCFs, including datum shift. The values you get in the summery table below on a TP tolerance.


    Ah ok you're probably using dimension xpert of which I know nothing about, I use legacy dimension and nothing else. One day I'll cross over to the xpert world...one day.

    Or I probably, still, don't understand the purpose or goal here. What's the end result?

    If you're looking for deviation vectors, wouldn't you just extract those from the geometry feature itself and not the TP feature?
  • 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...
  • writes expressions in the theoretical to prevent Pc-Dmis from changing them ex xval+0, yval+0, zval+0
  • For reference, the reported axis can be manipulated using settogglestring on fieldtype AXIS(132). Setting the <new> field to the toggle index value to add a reported axis. Setting an axis field to 7 seems to clear it.