I have a set of block reference entities and they all have the same referenced block id. How could I copy the block, so that every block reference holds a copy of the original block? I tried this:
Code: Select all
var a = doc.queryEntity(62);
var b = a.getReferencedBlockId();
var c = doc.queryBlock(b);
var d = c.clone();
d.setName('Test');
var op = new RAddObjectOperation(d, false);
di.applyOperation(op);