home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
cad
/
xcad3000
/
xcdoc
/
addatt
next >
Wrap
Text File
|
1995-07-10
|
2KB
|
53 lines
15.2 ADD ATTRIBUTE
The ADD ATTRIBUTE command is used to associate one or more attributes to a
set of entities.
COMMAND SYNTAX
#ADD ATTRIBUTE modifiers :Ent x1 x2 ... xn
The specified attributes will be added to the entities selected with 'x1' to
'xn'.
If any of the attributes entered with the command are not found in the
attribute look-up file "XCDATA:attribute", an error message will be
displayed and the command will be aborted.
MODIFIERS
ATTRIBUTE The name of an attribute that exists in the attribute
look-up file "XCDATA:attribute". The maximum length of an
attribute name is 16 characters.
This modifier can be repeated up to 32 times allowing multiple
attributes to be added in the same command. For example:
#ADD ATTRIBUTE ATTRIBUTE NUMBER INTEGER 10 ATTRIBUTE
TYPE TEXT "Office chair" :Ent ...
The following three modifiers are dependent on the data type of the
entered attribute. The data type of the required attribute should be
known as the correct data type modifier must be used or an error will
occur. Attributes with the data type NULL do not require a value to be
entered after the attribute name.
.TEXT This modifier is used if the attribute that has been
entered is of the data type TEXT. The modifier is followed
by a text string.
.INTEGER This modifier is used if the attribute that has been entered
is of the data type INTEGER. The modifier is followed by one
or more integer values. If more that one value is entered,
each value should be separated by a comma.
.REAL This modifier is used if the attribute that has been entered
is of the data type REAL. The modifier is followed by one
or more real values. If more that one value is entered, each
value should be separated by a comma.