|
DigiPara Liftdesigner LDX API
|
API method: ILDXObjects.Rotate
Treename: Shaft0.Car.Frame.Profile7.
' from Samples/Src/LDXAPIExamples/Example_LDXObjects.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc}, "Shaft0.Car.Frame.Profile7.", "LDXObjects~Rotate", "Rotate a profile")>
Public Shared Sub RotateAProfile(ByRef ldxDocument As DigiPara.LDX.LDXDocument)
If ldxDocument.GetLDXObject("Shaft0.Car.Frame.Profile7.") Is Nothing Then
MsgBox("Required profile not found! Please reload the .ld3 file.")
Exit Sub
End If
' Rotate around the X axis 180 degrees
ldxDocument.Sheets.ActiveSheet.ActiveSheetFrame.SelectedObjects.Rotate(0, 180)
End Sub