does anyone know of a way to rename a rootblock with automation in the design?
I found a solution to get the blockname and I found a solution to rename the boardname. But I didn´t found a way to rename the rootblock.
My code example in C#
ViewDraw.Application app = (ViewDraw.Application)Marshal.GetActiveObject("ViewDraw.Application"); var prjData = app.GetProjectData(); var rootBlock = prjData.GetiCDBDesignRootBlock(app.GetActiveDesign()); var board = prjData.GetiCDBDesigns().GetItem(1); prjData.RenameiCDBDesign(board , board + "_new");
It would be great if someone knows a solution.