Element Naming Restrictions
Moderators: cyao, michael_borland
Element Naming Restrictions
Are there any restrictions (unallowed characters) when naming the elements in the lattice?
-
- Posts: 1945
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Element Naming Restrictions
Michele,
The rules for naming elements and beamlines are as follows:
* The name should start with an alphabetic character (i.e., a-zA-Z).
* The name may contain any of the following characters: a-z A-Z ~ @ $ % ^ & - _ + = { } [ ] \ | / ? < > . :
* The name should no contain any of the following characters: # * ! " ' `
* The name cannot contain spaces.
When using unusual characters, it is a good idea to put the name in double quotes. This is necessary if ":" is used in a name. Using double-quotes also preserves the case of the name. By default, names are cast to upper case.
--Michael
The rules for naming elements and beamlines are as follows:
* The name should start with an alphabetic character (i.e., a-zA-Z).
* The name may contain any of the following characters: a-z A-Z ~ @ $ % ^ & - _ + = { } [ ] \ | / ? < > . :
* The name should no contain any of the following characters: # * ! " ' `
* The name cannot contain spaces.
When using unusual characters, it is a good idea to put the name in double quotes. This is necessary if ":" is used in a name. Using double-quotes also preserves the case of the name. By default, names are cast to upper case.
--Michael
-
- Posts: 1945
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Element Naming Restrictions
I forgot to say, you can also have digits 0-9 in the name.
--Michael
--Michael