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

Issue with using Autodesk Inventor API ComponentOccurrence

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