Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a dynamic block that is going to go into a number of assemblies along with a multitude of other things. What I would like to do is filter by block name in order to only pick up that specific block. I've found several codes that suggest the way to do it, but when I try to do the same thing it won't allow me to select that block, as if it were filtering it out too.
All other parts of this code work except the filter. If I comment the filter out the program runs perfectly. I just need to get it to accept the data correctly and I think its because I'm called off Block Reference for the type to filter by.
'Select Information
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Set oSset = ThisDrawing.PickfirstSelectionSet
oSset.Clear
Dim fcode(1) As Integer
Dim fdata(1) As Variant
fcode(0) = 0
fcode(1) = 2
fdata(0) = "BLOCK REFERENCE"
fdata(1) = "DYNAMIC BASE CHANNEL"
oSset.SelectOnScreen fcode, fdata
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Solved! Go to Solution.