Using VBA to Constrain Adaptive Geometry - Part Geometry Orients Properly but does not "Stretch"

Using VBA to Constrain Adaptive Geometry - Part Geometry Orients Properly but does not "Stretch"

nick.seman
Advocate Advocate
239 Views
1 Reply
Message 1 of 2

Using VBA to Constrain Adaptive Geometry - Part Geometry Orients Properly but does not "Stretch"

nick.seman
Advocate
Advocate

Hello:

 

I have created code that constrains an adaptive part between two work points in an assembly.  If I perform the task manually the part lengthens to stretch between the two work points.  The code however anchors the "a" end to the first point with a mate and then creates a mate anchoring the "b" to the second point - however while the part orients correctly it does not adapt its length to actually reach the second point.  Again, it works fine manually, and I have verified that the code is setting the constraints to the proper points.  Is there something that I am failing to do?

 

Thanks in advance,

Nick 

0 Likes
240 Views
1 Reply
Reply (1)
Message 2 of 2

nick.seman
Advocate
Advocate

Found a solution - If I place the part as non-adaptive, create the constraints, and then change it to adaptive using

 

oOcc2.Adaptive = True

 

The part changes shape accordingly.

 

Nick

0 Likes