We have drawigs that many blocks references in them. All I need to do is know which blocks have been inserted in the drawing. I'm using VB.net 2010 and AutoCAD 2013. Here is my code...
Dim BlockSet AsAcadSelectionSet
Try
BlockSet = oAcadApp.ActiveDocument.SelectionSets.Add("InsertedBlocks")
Catch ex AsException
BlockSet = oAcadApp.ActiveDocument.SelectionSets.Item("InsertedBlocks")
BlockSet.Clear()
EndTry
Dim FilterType(0) AsInt16
Dim FilterData(0) AsObject
FilterType(0) = 0
FilterData(0) = "INSERT"
Dim FilterTypeObject AsObject
Dim FilterDataObject AsObject
FilterTypeObject = FilterType
FilterDataObject = FilterData
BlockSet.Select(AcSelect.acSelectionSetAll, , , FilterTypeObject, FilterDataObject)
MsgBox(BlockSet.Count)
I believe my lack of knowledge on the filtering is my biggest problem. In there a reference to all the types of filters that can be used?
I haven't been doing a lot of AutoCAD programming. Is there a help file like there is with Inventor?
Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018