Solid Edge FrameworkSupport Type Library
PrefixInside Property
Description
Specifies whether or not prefix text for the referenced Dimension object is placed inside the associated basic dimension or inspection box.
Property type
Read-write property
Syntax
Visual Basic
Public Property PrefixInside As Boolean
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objline As SolidEdgeFrameworkSupport.Line2d
    Dim objDim As SolidEdgeFrameworkSupport.Dimension
    Dim bPrefixInside As Boolean
    ' 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.DraftDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    'getting the Active Sheet object
    Set objSheet = objDoc.ActiveSheet
    'create a line
    Set objline = objSheet.Lines2d.AddBy2Points(x1:=0.1, y1:=0.1, x2:=0.3, y2:=0.3)
    'create a dimension object
    Set objDim = objSheet.Dimensions.AddLength(Object:=objline)
    'set the dimension display type to Basic
    objDim.DisplayType = igDimDisplayTypeBasic
    'set Prefixstring
    objDim.PrefixString = "str"
    'get prefix inside prop
    bPrefixInside = objDim.PrefixInside
    'set prefix inside prop
    objDim.PrefixInside = True
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objline = Nothing
    Set objDim = Nothing
End Sub
See Also

Dimension Object  | Dimension Members