Solid Edge Assembly Type Library
ReadOnly Property
Description
Specifies whether or not the referenced document has been opened as read-only.
Property type
Read-write property
Syntax
Visual Basic
Public Property ReadOnly As Boolean
Example
Private Sub Form_Load()
    Dim objApp As solidedgeFramework.Application
    Dim objDoc As solidedgeAssembly.AssemblyDocument
    Dim bStat As Boolean
    Const TESTFILE = "T:\vbtests\testcases\Sample.asm"
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.AssemblyDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' Close the active document.
    Call objDoc.Close
    ' Opening the test case file
    Set objDoc = objApp.Documents.Open(TESTFILE)
    ' Get the status of the read-only property of the active document.
    bStat = objDoc.ReadOnly

    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
End Sub
See Also

AssemblyDocument Object  | AssemblyDocument Members