04-06-2023
10:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-06-2023
10:29 AM
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
(Not an Autodesk Employee)