Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5846

AddBlock() problems

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 5846

Latest Images

Trending Articles



Latest Images