Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: j3scat

I think your just missing the declaration of a workplaneproxy in this line

'GrOcc.CreateGeometryProxy(SrchPl, PPlane)

This should be

 

Dim PPlaneProxy as WorkPlaneProxy
GrOcc.CreateGeometryProxy(SrchPl, PPlaneProxy)

 Now use the proxy part plane in the main assembly function. No need for anymore proxies, I think!!. These always trip me up so hopefully I have it right. 

 

Here is a vba sample for guidance

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan