Hello!
I am trying run an Ilogic rule with VBA code in an asset of the factory.
But, when I'm running in factory layout show me an error:
Unable to cast COM object of type 'Inventor._DocumentClass' to interface type 'Inventor.PartDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{29F0D463-C114-11D2-B77F-0060B0F159EF}' failed due to the following error: Não há suporte para esta interface (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
What is this? How to solve?
Attachment file with the start of the code where show the error.
If you share the model with us, it will be easy to tell the problem.
-Xuesong
Thanks for reply @XuesongBai!
This error was corrected.
However, after publish this model for asset, some rules don't execute, because?
i"am trying manipulate parameters through Ilogic, this is possible?
I know this not is possible through C#.
Thanks again.
PS: I'am sorry, but here in company where I work is not allowed upload CAD files. 😞 😞