|
DigiPara Liftdesigner LDX API
|
API method: ILDXHideCS5.Rotate
Treename: Shaft0.Car.Frame.Profile21.
' from Samples/Src/LDXAPIExamples/Example_LDXCarFrame.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Profile21.", "LDXHideCS~Rotate", "Rotate a profile")>
Public Shared Sub RotateAProfile(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Profile21.") Is Nothing Then
MsgBox("Desired profile not found! Please reload the relevant .ld3 file.")
Exit Sub
End If
With DirectCast(ldxDocument.GetLDXObject("Shaft0.Car.Frame.Profile21.").LDXType, DigiPara.LDX.LDXProfile).Comp.LocalMatrix
' Rotate 90 about the Z axis clockwise
.SetRotation(2, -90)
' Rotate 90 about the new Y axis counter clockwise
.Rotate(1, 90)
End With
End Sub