Unblock all blocks within a draft environment

Hi there, I have a draft document was is essentially a schematic consisting of blocks. I would like to programmatically unblock each of the blocks such that only individual line elements exist within the document. Can anyone suggest a way to do this?


One approach may be to query the document for the set of blocks. And then going through the list of blocks and exploding or unblocking each one separately.


Thanks very much.


Posted by: Chris L'Esperance
Post date: 6/25/2013 12:38:53 PM


Unblock all blocks within a draft environment



in short words:


Iterate through the Sheets collection of the DraftDocument object

Iterate through the BlockOccurrences collection for each Sheet object

Call the Unblock method for each BlockOccurrence object


Posted by: Wolfgang Kunert
Post date: 6/26/2013 1:55:27 AM