Hello all,
I'm trying to extract the xyz values from a perimeter scan edge hit.
I'm having trouble navigating down the object hierarchy.
I see a PCDSCANHITTYPE and PCD_EDGEHIT, but
I don't know enough to get the xyz values into variables.
Hello Henniger123,
I did something like that.
This was just a test to output the xyz's to a file.
Open "H:\sc.bas" FOR OUTPUT AS #1
For each Cmd in Cmds
IF Cmd.Type = BASIC_SCAN_OBJECT then
For iCount = 1 To Cmd.GetText (N_HITS, 0)
xm = Cmd.GetText(MEAS_X, iCount)
ym = Cmd.GetText(MEAS_Y, iCount)
zm = Cmd.GetText(MEAS_Z, iCount)
Hello Henniger123,
I did something like that.
This was just a test to output the xyz's to a file.
Open "H:\sc.bas" FOR OUTPUT AS #1
For each Cmd in Cmds
IF Cmd.Type = BASIC_SCAN_OBJECT then
For iCount = 1 To Cmd.GetText (N_HITS, 0)
xm = Cmd.GetText(MEAS_X, iCount)
ym = Cmd.GetText(MEAS_Y, iCount)
zm = Cmd.GetText(MEAS_Z, iCount)