Solid Edge FrameworkSupport Type Library
IsAttributeSetPresent Property
Description
Returns True if a specified Attribute Set exists on the referenced object.
Property type
Read-only property
Syntax
Visual Basic
Public Property IsAttributeSetPresent( _
   ByVal Name As String _
) As Boolean
Parameters
Name
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objPoints As solidedgeframeworksupport.Points2d
    Dim objPoint As solidedgeframeworksupport.Point2d
    Dim objAttribSets As Object
    Dim objAttribSet As Object
    Dim boolIsAttribPresent 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
    'Points collection
    Set objPoints = objSheet.Points2d
    'Point creation
    Set objPoint = objPoints.Add(0.25, 0.25)
    'Attributesets collection
    Set objAttribSets = objPoint.AttributeSets
    'Set an attribute set
    Set objAttribSet = objAttribSets.Add("New AttributeSet")
    'get isattributesetpresent check
    boolIsAttribPresent = objPoint.IsAttributeSetPresent("New AttributeSet")


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

Point2d Object  | Point2d Members

Send comments on this topic.