1 | <head> |
---|
2 | <title>Editing Element Definitions</title> |
---|
3 | <!-- Changed by: Chris ISELIN, 24-Jan-1997 --> |
---|
4 | <!-- Changed by: Hans Grote, 25-Sep-2002 --> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body bgcolor="#ffffff"> |
---|
8 | |
---|
9 | <h1>Editing Element Definitions</h1> |
---|
10 | |
---|
11 | An element definition can be changed in two ways: |
---|
12 | <ul> |
---|
13 | <li> <b>Entering a new definition:</b> |
---|
14 | The element will be replaced in the main beam line expansion. |
---|
15 | <li> <b>Entering the element name together with new attributes:</b> |
---|
16 | The element will be updated in place, |
---|
17 | and the new attribute values will replace the old ones. |
---|
18 | </ul> |
---|
19 | This example shows two ways to change the strength of a quadrupole: |
---|
20 | <pre> |
---|
21 | QF: QUADRUPOLE,L=1,K1=0.01; ! Original definition of QF |
---|
22 | QF: QUADRUPOLE,L=1,K1=0.02; ! Replace whole definition of QF |
---|
23 | QF,K1=0.02; ! Replace value of K1 |
---|
24 | </pre> |
---|
25 | When the type of the element remains the same, |
---|
26 | replacement of an attribute is the more efficient way. |
---|
27 | <p> |
---|
28 | Element definitions can be edited freely. |
---|
29 | The changes do not affect already defined objects which belong to |
---|
30 | its <a href="elm_class.html">element class</a>. |
---|
31 | <p> |
---|
32 | <address> |
---|
33 | <a href="http://www.cern.ch/Hans.Grote/hansg_sign.html">hansg</a>, |
---|
34 | January 24, 1997 |
---|
35 | </address> |
---|
36 | |
---|
37 | </body> |
---|