hexagon logo

How do you write back tips to a mirrored part program using VB.Net...

Hi All,

The lowdown:
Using PC-DMIS 2018R1 (Soon to be 2022.1)
Visual Studio 2019 (VB, not C#)
Dual Arm Bravo

We are mirroring programs via a VB application, but when you save out the mirrored part program it makes all tip angles A0B0. So, being the wise FOG here, I had the bright idea to extract all the tip angles prior to mirroring the part program and while doing so, mirroring said tips in a VB app. Then saving them to a text file with the format of T1A#B# with one tip per line. I did this with the idea of injecting them back into the mirrored part program. Unfortunately, I have been unsuccessful in doing so. I've perused the 2019 Object Library and have not found a method for doing this, I see things for reading/returning various parameters about probes/tips but nothing for writing them back to the probes/tips.

That is my dilemma at the moment. Hopefully someone has been down this path before and has a solution.

A bit of background here: Mirroring a part program is very easy on a single arm machine as there is only one probe and the mirroring of that probe is academic. But on a dual arm you are mirroring the probe across the XZ plane of the machine and the method Hexagon chose to do this is problematic. They chose the nearest qualified probe angle for the mirrored probe, if the nearest qualified probe is 45 degrees away on A and 90 degrees on B of the original probe that is the probe angle you get. You are stuck with this as there is no option to not mirror the probes, which would alleviate some of the problem...instead you get mangled mirrored probes.

Regards,
The FOG
Parents
  • My apologies, I should have been a bit more clear. That is what I essentially do but I have been unable write the probes back to the mirrored part program. I am unsure what VB commands to use from the Object Library. It appears I'd use 'ActiveTip' but have been unsuccessful. As per the picture below, I believe the SetShankVector method, TipID property and Angle property are associated as shown, yet writing them back has not worked. I'd show my VB code but it is Intellectual Property of my employer (and I enjoy being employed right now) and cannot share it. Any tips or example code (VB) would be appreciated.



    The FOG
Reply
  • My apologies, I should have been a bit more clear. That is what I essentially do but I have been unable write the probes back to the mirrored part program. I am unsure what VB commands to use from the Object Library. It appears I'd use 'ActiveTip' but have been unsuccessful. As per the picture below, I believe the SetShankVector method, TipID property and Angle property are associated as shown, yet writing them back has not worked. I'd show my VB code but it is Intellectual Property of my employer (and I enjoy being employed right now) and cannot share it. Any tips or example code (VB) would be appreciated.



    The FOG
Children
No Data