DigiPara Liftdesigner LDX API
Loading...
Searching...
No Matches
Get the overlay of the sheet

API method: ILDXSheet5.SaveOverlay

Treename: Sheets.LdvSheet1.

 ' from Samples/Src/LDXAPIExamples/Example_LDXSheet.vb

    <APIHelpAttribute(APIHelpModes.FireCalcModel Or APIHelpModes.LoadLD3File, {APIHelpModes.InputParaLDXDoc, APIHelpModes.InputParaDesktopWithOtherFileName, "OVL.dwg"}, "Sheets.LdvSheet1.", "LDXSheet~SaveOverlay", "Get the overlay of the sheet")>
    Public Shared Sub GetTheOverlayOfTheSheet(ByRef ldxDocument As DigiPara.LDX.LDXDocument, ByVal OverlayFilePath As String)

        If ldxDocument.GetLDXObject("Sheets.LdvSheet1.") Is Nothing Then
            MsgBox("Desired sheet not found! Please reload the relevant .ld3 file.")
            Exit Sub
        End If

        DirectCast(ldxDocument.GetLDXObject("Sheets.LdvSheet1.").LDXType, DigiPara.LDX.LDXSheet).SaveOverlay(OverlayFilePath)

    End Sub