|
Can
I use attributes with a CALSCRIPT
object? |
|
Yes, you can. Simply create an
ATTDEF entity in your script. CALSCRIPT
will automatically create an ATTRIB from
that which is attatched to the object's
blockreference.
This is a normal attribute, which can be
edited individually for each CALSCRIPT
object in your DWG file.
The best way is to define an ATTDEF with
a default value, and to set the default
value to anything which is calculated
inside the script. See the sample
attributesample.scr, how to do this.
There is an ATTDEF with the area of the
object, and everytime you CC-MODIFY an
individual object it will show the
current area.
|
Can I define objects without
properties? |
|
Yes, simply omit the CC-PROPERTIES
declaration from the script.
For example, see
DATESTAMP.SCR.
This creates
a text
entity with the current exact
date.
If you redraw such a datestamp with
CC-REDRAW, the date will be updated. |
|
|
|
|
|
|
|
|