Message 1 of 9

Not applicable
07-01-2013
08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I'm working on mating two assemblies together by work points on a part inside of them.
Here is the code I'm using. It worked with work planes, but when repurposed it to work points, I get a type mismatch when the code tries to generate the work point proxies:
Dim oPartPoint1 As WorkPoint oPartPoint1 = oOcc1.Definition.WorkPoints.Item("botMatePoint") Dim oPartPoint2 As WorkPoint oPartPoint2 = oOcc2.Definition.WorkPoints.Item("matePoint") Dim oAsmPoint1 As WorkPointProxy oOcc1.CreateGeometryProxy(oPartPoint1, oAsmPoint1) Dim oAsmPoint2 As WorkPointProxy oOcc2.CreateGeometryProxy(oPartPoint2, oAsmPoint2)
Any thoughts?
Thanks
Solved! Go to Solution.