Here is the issue I ran into, I am trying to find blocks that are nested inside other blocks. In the attached file blocks "Part 1" and "Part 2" are nested inside "SubAssembly 1". If I do the follow nothing is returned.
Code:Block='SubAssembly 1' BlkObj = rs.BlockObjects(Block) for e in BlkObj: if rs.IsBlock(e); print (e)
but if I do this then it returns 4096 which are block objects.
What am I missing here.Code:BlkObj = rs.BlockObjects(Block) for e in BlkObj: print (rs.ObjectType(e))
Dennis


Reply With Quote
