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

Also, if the purpose of your routine is to find and return a WorkPlaneProxy, then why not make it a Function instead of a Sub routine.  Functions are use to 'return' something, while a Sub is just to 'do' something, without returning anything.  If you change your routine to a Function, then leave out the 'input' WorkPlane or WorkPlaneProxy type object, leaving just the assembly document and plane name, then at the end of the 'definition' line, put "As WorkPlaneProxy" (without the quotes.  Then when you get the reference to the WorkPlaneProxy, use "Return oMyWorkplaneProxy" (without the quotes, and with the variable you were using).

Wesley Crihfield

EESignature

(Not an Autodesk Employee)