RENAME GROUP OF COMPONENTS
                
                Submitted
            I often want to rename a group of components. However, I am required to rename one by one.
For example, "MINER - LARGE CONTAINER", "BASE - REACTORS", "BASE - HANGAR DOORS", "MINER - DRILL".
Instinctively, I select various components on the control panel and try to rename them.
You can't vote. Please authorize!
            
                                                                    
            
            
            I like this feedback        
I use a script I made to rename blocks, its very easy to make. Just adjust the type of block you want and the name you want. It comes with a commented modifier for the custom data too.
public Program() { } public void Save() { } public void Main(string argument, UpdateType updateSource) { List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>(); GridTerminalSystem.GetBlocksOfType<IMyCargoContainer>(blocks, (b => b.CubeGrid == Me.CubeGrid)); int count = blocks.Count; foreach (IMyTerminalBlock block in blocks) { block.CustomName = "Cargo " + (i + 1).ToString().PadLeft(count.ToString().Length, '0'); //block.CustomDate = "Whatever you like"; } }I use a script I made to rename blocks, its very easy to make. Just adjust the type of block you want and the name you want. It comes with a commented modifier for the custom data too.
public Program() { } public void Save() { } public void Main(string argument, UpdateType updateSource) { List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>(); GridTerminalSystem.GetBlocksOfType<IMyCargoContainer>(blocks, (b => b.CubeGrid == Me.CubeGrid)); int count = blocks.Count; foreach (IMyTerminalBlock block in blocks) { block.CustomName = "Cargo " + (i + 1).ToString().PadLeft(count.ToString().Length, '0'); //block.CustomDate = "Whatever you like"; } }Replies have been locked on this page!