@kyle_faulkner wrote:
I’m trying to update a block via python. When I run the test code below, the block only updates as long as none of the newobj are blocks. I want to nest the selected blocks into the updated block, but it fails. There is not error or warning or anything. The block just doesn’t update.
import rhinoscriptsyntax as rs block = rs.GetObject("Block", 4096) blockname = rs.BlockInstanceName(block) newobj = rs.GetObjects("New Objects") rs.AddBlock(newobj,(0,0,0),blockname,True)
Posts: 4
Participants: 2