How to know Specific Object After Using kAllEntitiesFilter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi expert,
Can help me for find, how to know the selected object is a specific filter object, I am also confused how to make this question understandable. in this code I want to specify, whether the object I choose is a custom table or partslist table or revision table?
After I know the type of object, there is another code that I have prepared.
I have trouble knowing how to know what object, when using (kAllEntitiesFilter).
I vba macro in Inventor 2014.
Dim oDwgDoc As DrawingDocument
Set oDwgDoc = ThisApplication.ActiveDocument
Public Sub ChooseTableToEdit()
Dim oSheet As Sheet
Set oSheet = oDwgDoc.ActiveSheet
Dim CMDMan As CommandManager
Set CMDMan = ThisApplication.CommandManager
Dim TableObj As Object
Set TableObj = CMDMan.Pick(kAllEntitiesFilter, "Select any table")
If TableObj = kDrawingCustomTableFilter Then
MsgBox ("You want edit Custom table Table?")
'Next my code
ElseIf TableObj = kDrawingPartsListFilter Then
MsgBox ("You want to edit Part List Table?")
'Next my code
ElseIf TableObj = kDrawingRevisionTableFilter Then
MsgBox ("You want to edit Revision Table?")
'Next my code
End If
End Sub
Autodesk Inventor Professional Certified 2014