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

Issue with using Autodesk Inventor API ComponentOccurrence

Anonymous

Issue with using Autodesk Inventor API ComponentOccurrence

Anonymous
Not applicable

I am using the Delphi language Inventor API and I am creating a componentOccurence.

I want to access the componentOccurence.Definition.WorkPlanes to define an assembly mate constraint after.

I declare as:

-------

Occ:Inventor2017_TLB.ComponentOccurrence;

-------

 

Next I add a part to an assembly as:

-------

Occ:=iamdoc.ComponentDefinition.Occurrences.Add(actfileREF,OMatrix);

----

 

And I want to access the WorkPlanes of the Occ using:

-------

Occ.Definition.WorkPlanes

------

 

However the program doesn't detect the Workplanes field for the ComponentOccurrence. Does anyone know a method I can get the workplane of the part/Occurence or why the library doesn't detect the WorkPlanes field?

 

Kind Regards

Agostinho

0 Likes
Reply
379 Views
1 Reply
Reply (1)

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

Welcome to the Autodesk User's Community..

 

When it comes to API and in-depth programming questions for Inventor, you should be using the Inventor Customization forum (to receive a better response).   I will have the moderator move this posting over to that forum.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes