Hey guys, I am having a problem with inserting blocks.
Here is some of my code
plp1 = rs.ObjectsByName("PART LIST POINT 1") plp1Coor = rs.PointCoordinates(plp1) dlpTB = rs.InsertBlock("DOUBLE LIST PART TITLE BLOCK", plp1Coor) dlpP = rs.InsertBlock("SINGLE PART DOUBLE LIST", plp1Coor) rs.MoveObject(dlpP, (0,-2.242,0)) rs.ExplodeBlockInstance(dlpP) partD = rs.ObjectsByName("PART DESCRIPTION") #its not finding this, cause it was wiped rs.TextObjectText(partD, string)
Here’s whats happening.
When the block is inserted and exploded, it looses all object information.
But this only happens when you do it programmatically. If I manually insert the block (Insert command) and then explode it, the keeps all the objects names intact.