AutoCAD Mechanical Forum
Welcome to Autodesk’s AutoCAD Mechanical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Mechanical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

List/choose component properties

0 REPLIES 0
Reply
Message 1 of 1
FRFR1426
247 Views, 0 Replies

List/choose component properties

How can I list/choose the component properties which appears in the Component properties tab? I've found how for other tabs, but I don't know how to do for this tab:

 

Public Sub DumpColumns()
    Dim symbb  As McadSymbolBBMgr
    Set symbb = ThisDrawing.Application.GetInterfaceObject("SymBBAuto.McadSymbolBBMgr")
    
    Dim stdMgr As McadStandardMgr
    Set stdMgr = symbb.StandardMgr
    
    Dim bomMgr As IMcadBOMMgr4
    Set bomMgr = symbb.bomMgr
    
    Dim i As Integer
    Dim col As IMcadColumnDefinition2
    
    Dim BOMStd As IMcadBOMStandard2
    Set BOMStd = stdMgr.CurrentStandard.BOMStandard
    
    Debug.Print "Component Properties"
    Debug.Print "--"
    ' ?
    
    Debug.Print
    Debug.Print "BOM"
    Debug.Print "--"
    For Each col In BOMStd.Columns
        If col.IsVisible Then
            Debug.Print col.Name
        End If
    Next col
    
    Debug.Print
    Debug.Print "Parts List"
    Debug.Print "--"
    For Each colIdx In BOMStd.PartListStandard.ColumnList
        Set col = BOMStd.GetColumn(Index:=colIdx)
        Debug.Print col.Name
    Next colIdx
    
    Debug.Print
    Debug.Print "Balloon"
    Debug.Print "--"
    For Each colIdx In BOMStd.BalloonStandard.ColumnList
        Set col = BOMStd.GetColumn(Index:=colIdx)
        Debug.Print col.Name
    Next colIdx
End Sub

 

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost