<p>Only thing I can think of is to write the ID in a text file manually and use the file block to read the ID.
To do that: Use an application like notepad++ to create the text file. Make sure the line endings are just a newline character, not the carriage return.
Save the file with .rtf as extension.
Use the memory browser in the EV3 software to upload the file to the brick in the project folder of your program...
Alternatively, modify your program temporarily to write the ID first to file (manually select the value in a File block...), don't forget to close the file (second file block).</p>

CC BY-SA 4.0
2018-05-20T22:32:14.140Z
I want to give this block to another person. And I also want this block, doesn't work in another bricks
mahdi
CC BY-SA 4.0
2018-05-22T08:55:24.010Z
I don't think what you wish to accomplish is possible in EV3-g. There are other programming languages / environments (e.g. LeJos, ev3dev) where this task would be trivial.
Michael Verschaeve
CC BY-SA 4.0
2018-09-19T17:48:34.053Z
This is the correct answer. There's no way to accomplish this task using EV3-G blocks.
MindS1
CC BY-SA 4.0
2018-05-20T21:24:07.973Z
2018-05-20T21:24:07.973Z
Michael Verschaeve
<p>How can I access the brick ID ( or brick information) in ev3-g?</p>

<p><a href="https://i.sstatic.net/Apt94.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Apt94.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2018-05-20T13:20:15.890Z
I don't think this identifier is used anywhere in the EV3 software or EV3-G programming language. Can you tell us why you would need it? Perhaps we can offer other suggestions... Note that you can give your brick a name in the hardware tab of your project (bottom-right)...
Michael Verschaeve
CC BY-SA 4.0
2018-05-20T14:29:13.990Z
I want to make a block that works only in a specified brick.
mahdi
<ev3><ev3-g>
How can I access the brick id in ev3-g?
mahdi
# How can I access the brick id in ev3-g?

(Asked by: username_0 on 2018-05-20)

How can I access the brick ID ( or brick information) in ev3-g?

[![enter image description here](https://i.sstatic.net/Apt94.png)](https://i.sstatic.net/Apt94.png)

**Tags:** ev3, ev3-g

> **Comments:**
> **username_1**: I don't think this identifier is used anywhere in the EV3 software or EV3-G programming language. Can you tell us why you would need it? Perhaps we can offer other suggestions... Note that you can give your brick a name in the hardware tab of your project (bottom-right)...  
> **username_0**: I want to make a block that works only in a specified brick.  

---

## 1 answers

### Answer by username_1 on 2018-05-20. Score: 2

Only thing I can think of is to write the ID in a text file manually and use the file block to read the ID.
To do that: Use an application like notepad++ to create the text file. Make sure the line endings are just a newline character, not the carriage return.
Save the file with .rtf as extension.
Use the memory browser in the EV3 software to upload the file to the brick in the project folder of your program...
Alternatively, modify your program temporarily to write the ID first to file (manually select the value in a File block...), don't forget to close the file (second file block).

> **Comments:**
> **username_0**: I want to give this block to another person. And I also want this block, doesn't work in another bricks  
> **username_1**: I don't think what you wish to accomplish is possible in EV3-g. There are other programming languages / environments (e.g. LeJos, ev3dev) where this task would be trivial.  
> **username_2**: This is the correct answer. There's no way to accomplish this task using EV3-G blocks.  

---

