Author Topic: Brick Name  (Read 460 times)

if %brick is the brick's object id, how do I get the name entered in the "Brick Name" field?

is it %brick.getname()?


Not quite, you'd use:

Code: [Select]
getSubStr(%brick.getName(),1,strLen(%brick.getName()))
The brick objects' names are preceded by an underscore, denoting their brickness.
By using getSubStr you can get everything but the underscore. Simple as that.