Solid Edge Part Type Library
Add Method
Specifies the RefPlane object that will be the parent for the created Profile object.
Description
Adds an occurrence of the referenced object.
Syntax
Visual Basic
Public Function Add( _
   ByVal pRefPlaneDisp As Object _
) As Profile
Parameters
pRefPlaneDisp
Specifies the RefPlane object that will be the parent for the created Profile object.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim objProfiles As SolidEdgePart.Profiles
    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 Profiles collection object
    Set objProfiles = objDoc.ProfileSets.Add.Profiles
    'Create a Profile object
    Call objProfiles.Add(objDoc.RefPlanes(1))
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objProfiles = Nothing
End Sub
See Also

Profiles Collection  | Profiles Members