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

Add constraint with ilogic without naming the geometry of the parts possible?

Hello,
is it possible to define a constraint in an assembly with an iLogic rule without having defined the geometries within the parts before?

I Use the code snipped like:

Constraints.AddMate("Mate1", "Part1:1", "Work Plane1", "Part2:1", "Work Plane1",
                    offset := 0.0, e1InferredType := InferredTypeEnum.kNoInference, e2InferredType := InferredTypeEnum.kNoInference,
                    solutionType := MateConstraintSolutionTypeEnum.kNoSolutionType,
                    biasPoint1 := Nothing, biasPoint2 := Nothing)

This works fine as long as I´m able to name the used geometry within my parts. But as I´m working within a Vault invoronment with a lot "released" parts or parts from content center, it is not possible to name the geometry within the parts since i am not supposed to work on the parts themselves. 

 

I´m working with Inventor 2020 at the moment.

 

About help or workarounds I would be very grateful!

Regards,

Ole

Labels (1)