I've made a dynamic block (see attch). It a rectangle that can be stretched with the arrows when clicking on the block.
The code below "finds" the block when inserterd, but once the arrows are used to strech the block the code doens't find the block any more. How can this ?
myfilter(0) = New DatabaseServices.TypedValue(DatabaseServices.DxfCode.BlockName, "vbredakdettek") myPSR = myEd.SelectAll(mySF) mySS = myPSR.Value If mySS Is Nothing Then myEd.WriteMessage(vbLf & " block is'nt found ") end if
Once you change a dy block property, then the block becomes an anonymous block. Since you only use an ssget filter with the real name, it will not find it.