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: K.clement

Hi @K.clement.  It would be difficult to diagnose without seeing more of the code, but based on the error link, it seems to be trying to convert one object type to another, and that won't work.  I know that specific function is designed to set the value of the second input variable (a pre-existing variable that is supposed to be defined as one of the 'proxy' type objects).  It looks to me like you are supplying the same variable for both input variables of the function, which it was not designed for.  The first variable is for the source object that it is to get/create a proxy for, and the second variable is to hold the new proxy object that was retrieved/created from the first variable.  If dealing with WorkPlane object, the first input variable can be either a WorkPlane or a WorkPlaneProxy, but the second input variable should be pre-defined as a WorkPlaneProxy Type object.  Technically, the WorkPlaneProxy Class is derived from the WorkPlane Class, so it may not normally throw an error when directly converting between the two within the iLogic environment, but I'm not sure about within the Visual Studio / VB.NET environment.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)