1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Get own grid name

Discussion in 'Programming Questions and Suggestions' started by |ab18| ~ icke ~, Aug 23, 2018.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. |ab18| ~ icke ~

    |ab18| ~ icke ~ Trainee Engineer

    Messages:
    17
    Hi, I just started programming in c#.

    I'm looking for a possibility to get the name of the own grid.
    Means same grid as the programming block.
     
  2. Malware

    Malware Master Engineer

    Messages:
    9,867
    Me.CubeGrid.CustomName
     
  3. |ab18| ~ icke ~

    |ab18| ~ icke ~ Trainee Engineer

    Messages:
    17
    Thank you, works fine!

    Additional question:
    Could anyone tell me how i change the name of a blockgroup, so that it allows whitespaces?
    Because this apparently doesn't work.

    Code:
    shipThruster.Name = Me.CubeGrid.CustomName + " Thruster";
     
  4. Malware

    Malware Master Engineer

    Messages:
    9,867
    You can't change block groups from the programmable block.
     
Thread Status:
This last post in this thread was made more than 31 days old.