Exporting blocks to external file


I’m trying to export blocks to an external file. So far I tried iterating through blocks (instance definitions) in actively open file and add them to an externally opened file with File3dmInstanceDefinitionTable.Add() method. It seems to be directly copying whatever information InstanceDefinition has, but it does not copy the actual geometry or its base point.

How can I also export these and connect them with exported blocks? Also I’m really curious about where these are stored, I looked through the API docs but yet to find anything.

Hi @ibrahim1,

The best way to export a block is to script the _-BlockManager _Export command.

– Dale