Factory Design Utilities Forum
Welcome to Autodesk’s Factory Design Utilities Forums. Share your knowledge, ask questions, and explore popular Factory Design Utilities topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Run VB on asset

2 REPLIES 2
Reply
Message 1 of 3
ederson.balbinot
316 Views, 2 Replies

Run VB on asset

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.


Best Regards,
Ederson Balbinot
Software Enginner
Kudos are much appreciated if the information I have shared is helpful to you and/or others. Thanks!
Please "Accept As Solution" if a reply has helped resolve the issue or answered your question, to help others in the community.
2 REPLIES 2
Message 2 of 3

If you share the model with us, it will be easy to tell the problem.

 

-Xuesong

Please mark as a solution if somehow I got it right.
Message 3 of 3

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. 😞 😞


Best Regards,
Ederson Balbinot
Software Enginner
Kudos are much appreciated if the information I have shared is helpful to you and/or others. Thanks!
Please "Accept As Solution" if a reply has helped resolve the issue or answered your question, to help others in the community.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report