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

Python ExplodeBlockInstance not working as expected

$
0
0

@bjornsyse wrote:

Hi

I’m trying to use rs.ExplodeBlockInstance(object_id, explode_nested_instances=False) with this second argument to entirely flatten a block hierarchy. The documentation for this command is here in the API:

http://developer.rhino3d.com/5/api/RhinoScriptSyntax/win/#block-ExplodeBlockInstance

This is my code:

blockContents = rs.ExplodeBlockInstance(objectId, True)

But I get an error saying:

Message: ExplodeBlockInstance() takes exactly 1 argument (2 given)

Traceback:
  line 29, in RunCommand, "C:\Users\TMGxbs\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\PythonPlugins\Syse {863cf680-d131-479f-b639-5034403f3eea}\dev\BlocksToLayers_cmd.py"
  line 53, in <module>, "C:\Users\TMGxbs\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\PythonPlugins\Syse {863cf680-d131-479f-b639-5034403f3eea}\dev\BlocksToLayers_cmd.py"

Seems this function does not work as documented?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5846

Latest Images

Trending Articles



Latest Images