Assuming that you are literally calling
Blockly.WorkspaceSvg.prototype.render() from your code, it won't work because you need to call the
render() function off the workspace object and not the prototype. For example if you were working from the
code demo, you would call
Code.workspace.render(); In theory that should actually do the job for you as that routine doesn't optimize out calling
render() when
block.rendered is set. If that doesn't quite accomplish what you are going for, you could always serialize out and then reload the workspace (again using the
code demo as a basis) with:
var xml = Blockly.Xml.workspaceToDom(Code.workspace);
Blockly.Xml.domToWorkspace(Code.workspace, xml);
Good luck!
-- John