AngleConstraint, DirectionThreeReversed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am writing a macro to add an AngleConstraint to my assembly that specifies the third axis for rotation.
I am creating the constraint based off an existing constraint that also uses the third axis for rotation.
'basically copying the constraint from a pickedObject to a new part
The macro works fine, however if the third axis is flipped from the default in the originally pickedobjec.
When the new AngleConstraint is created the 'ReferenceVectorEntity' used to position the part is not flipped
and there does not appear to be a property to change it.
below is a small snippet of my code to give an idea of my macro
My question is, Is there a way to flip the ReferenceVectorEntity?
Dim ReferenceVector As Variant
Set ReferenceVector = pickedObjectConstraint.ReferenceVectorEntity
' Create the Angle constraint between the parts.
Dim oConstraint As AngleConstraint
Set oConstraint = oAsmCompDef.Constraints.AddAngleConstraint(oBrepEnt1, oBrepEnt2, pickedObjectConstraint.Angle.Expression, pickedObjectConstraint.SolutionType, ReferenceVector)
Thanks
Stuart