Message 1 of 2
Place iFeature and Setting the Rotation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working with a 3rd party to develop a program in VB.NET that places an iFeature. If the user enters a negative X or Y value, we want the feature rotated by 270 degrees. On one part, it rotates it by 90 degrees. On another part, it rotates it by 180 degrees. I don't understand why it's different between two parts when the code is exactly the same for setting the value of the rotate parameter.
If dXValue < 0 Or dYValue < 0 Then
Try
Dim dTempX, dTempY As Double
dTempX = dXValue
dTempY = dYValue
dXValue = dTempY
dYValue = dTempX
Dim oFPoint As Inventor.Point
oFPoint = oPoint.Point
Dim oFAxis As Vector
oFAxis = oTG.CreateVector(0, 0, 1)
oPlaneInput.SetPosition(oFPoint, oFAxis, (0))
oPlaneInput.SetPosition(oFPoint, oFAxis, (270 * Math.PI / 180))
Catch ex As Exception
End Try
End If