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

I appreciate the reply, but I think it doesn't fix my issue, due to missing information from my end.

(When I typed my forum post, for some reason when I hit submit, there was an error and my entire post was lost, the post you read, was my second attempt and I was tired. I left out some info)

 

When I try to create the workplaneproxy in my subroutine, my sub header would be:

Sub FindSubPlane(aDoc As AssemblyDocument, ByRef PPlane As WorkPlaneProxy, PName As String)

I would also change the ByRef object type in my Main routine to be a Proxy plane

FindSubPlane(NA.Definition.Document, ProxSrchWPlane, "PlaneName")

 

I haven't completely worked through your VBA code sample yet, but using its nomenclature as a reference, I have a working subroutine that fairly closely replicates the situation of mating a WorkPlane from oOcc1 and oOcc2.  I think my issue is not knowing how to successfully mate a Workplane from oOcc1 and a sub part from oOcc2 (say oOcc2.oOcc2.1)