Ilogic Constraint features question

Ilogic Constraint features question

matteo_pallaroni
Advocate Advocate
485 Views
1 Reply
Message 1 of 2

Ilogic Constraint features question

matteo_pallaroni
Advocate
Advocate

Hi Experts, am I right if I say that the new features of ilogic like:

Constraints.AddFlush("Flush1", "Part1:1", "Work Plane1", "Part2:1", "Work Plane1",
                     offset := 0.0, biasPoint1 := Nothing, biasPoint2 := Nothing)

do not apply if one of the occurrence is the top assembly? In my case I want to constraint a user defined work plane of a part to the XY origin plane of the assembly that contains the part itself. something like:

Constraints.AddFlush("Flush1", "Part1:1", "Work Plane1", "Main Assembly", "XY Plane", offset := 0.0, biasPoint1 := Nothing, biasPoint2 := Nothing)

 

I know that I have to create a Proxy for the part plane and then Call the assembly feature, but that was 2018 and previous releases...

 

thank you for taking care

0 Likes
Accepted solutions (1)
486 Views
1 Reply
Reply (1)
Message 2 of 2

matteo_pallaroni
Advocate
Advocate
Accepted solution

I went through that, by chance, and made it...pure case...although Active Occurrence on my main context document doesn't really make sense...

Dim oDoc As AssemblyDocument
oDoc = ThisDoc.ModelDocument
Constraints.AddFlush("Flush1", "Part1:1", "Work Plane1", oDoc.ComponentDefinition.ActiveOccurrence, "XY Plane", offset := 0.0, biasPoint1 := Nothing, biasPoint2 := Nothing)

This approach to ilogic might be personally satisfying but can lead to a neverning development of rules...playing around with tries and guesses. I'd suggest to make the help a little bit more detailed.