Created
October 1, 2018 23:36
-
-
Save camelo003/1a38a5e43a249dfd4f929b8957cfd635 to your computer and use it in GitHub Desktop.
Função que cria um novo element, node e coluna de desenho, devidamente conectados!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function novoDrawing(group,name){ | |
//Cria um novo element, node e coluna de desenho, devidamente conectados! | |
var id = element.add(name, "BW", scene.numberOfUnitsZ(), "SCAN", "TVG"); | |
column.add(name, "DRAWING"); | |
column.setElementIdOfDrawing(name, id); | |
var tempNode = node.add(group,name, "READ", 0, 0, 0); | |
node.linkAttr(tempNode, "DRAWING.ELEMENT", name); | |
return group+tempNode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment