Solid Edge FrameworkSupport Type Library
AddRadius Method
Specifies the object for which the dimension is applied. Valid objects are Circle2d or Arc2d.
Description
Creates a dimension to measure the radius of a Circle2d or an Arc2d object.
Syntax
Visual Basic
Public Function AddRadius( _
   ByVal Object As Object _
) As Dimension
Parameters
Object
Specifies the object for which the dimension is applied. Valid objects are Circle2d or Arc2d.
Remarks
This method takes the minimum required data (object) and assumes other data from the defaults set in the collection object.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim objProfile As SolidEdgePart.Profile
    Dim objC1 As SolidEdgeFrameworkSupport.Circle2d
    Dim objD1 As SolidEdgeFrameworkSupport.Dimension
    Dim sDumpStatus As String    ' Used for temporary storage of datadump return string
    ' 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.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' Create a Profile
    Set objProfile = objDoc.ProfileSets.Add.Profiles.Add(pRefPlaneDisp:= _
                                                         objDoc.RefPlanes(1))
    ' Create a Circle object in the Profile
    Set objC1 = objProfile.Circles2d.AddByCenterRadius(x:=0, y:=0, Radius:=0.01)
    ' Create a Dimension object
    Set objD1 = objProfile.Dimensions.AddRadius(Object:=objC1)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objProfile = Nothing
    Set objC1 = Nothing
    Set objD1 = Nothing
End Sub
See Also

Dimensions Collection  | Dimensions Members

Send comments on this topic.