You would have to compare the vectors or unit vectors of both Axis objects to see if they need to be aligned or opposed. It's not the most straight forward process, because when you start talking about vectors, unit vectors, Matrix, Matrix2d, and similar objects, it starts going over most folks heads, but they had to call these things something within the code environment, to be able to compare and manipulate physical things in 3D space.
UnitVectors consist of a set of coordinates, with at least one of the coordinates being equal to 1 length unit in the direction it is pointing.
I think this is one way you can compare the two axes, if I'm not mistaken.
I'm not 100% sure if the two UnitVectors being equal means they are both perfectly aligned and pointing in the same direction, or if it just means both are pointing in the same direction.
Dim oAx1 As WorkAxis
Dim oAx2 As WorkAxis
Dim oV1 As UnitVector = oAx1.Line.Direction
Dim oV2 As UnitVector = oAx2.Line.Direction
If oV1.IsEqualTo(oV2) Then
'They are aligned and pointing in the same direction
ElseIf oV1.IsParallelTo(oV2) Then
'They are parellel with each other
ElseIf oV1.IsPerpendicularTo(oV2) Then
'They are perpendicular to each other
End If
Wesley Crihfield

(Not an Autodesk Employee)