Difference between revisions of "Command Show"

 
Line 10: Line 10:
  
 
(new to 4.0)  
 
(new to 4.0)  
The Att_Showable attribute of the Attribute object controls whether the attribute is displayed by Show.  If you create your own user-defined attribute, you can control whether it displays with the Show command by setting this meta-attribute.
+
The Att_Showable attribute of the Attribute object controls whether the attribute is displayed by Show.   
  
 
For example, try this:
 
For example, try this:
 
* Create a variable Va1
 
* Create a variable Va1
* select Object->Attributes... -> new attribute
 
* Enter a name: "MyAtt".  Press [Create], [OK]
 
 
* Press CTRL-' to open the typescript window.  Follow along with this typescript dialog:
 
* Press CTRL-' to open the typescript window.  Follow along with this typescript dialog:
Untitled> Show MyAtt
 
Attribute MyAtt
 
Title: MyAtt
 
Att_saveable:1
 
Att_showable:1
 
Untitled>
 
 
Notice that your user-defined attribute appears in Show by default.  You can see this using:
 
Untitled> MyAtt Va1: Hello world
 
 
  Untitled> Show Va1
 
  Untitled> Show Va1
 
  Variable Va1
 
  Variable Va1
Line 31: Line 20:
 
  Nodelocation: 176,88,1
 
  Nodelocation: 176,88,1
 
  Nodesize: 48,24
 
  Nodesize: 48,24
  Myatt: Hello World
+
   
 +
Untitled> show Nodesize
 +
Attribute Nodesize
 +
Att_saveable: 1
 +
Att_showable: 1
  
Now change it:
+
Untitled> Att_showable Nodesize:0
  Untitled>Att_showable MyAtt:0
+
  Untitled> show Nodesize
  Untitled>show va1
+
Attribute Nodesize
 +
Att_saveable: 1
 +
Att_showable: 0
 +
 
 +
  Untitled> Show Va1
 
  Variable Va1
 
  Variable Va1
 
  IsIn: Untitled
 
  IsIn: Untitled
 
  Nodelocation: 176,88,1
 
  Nodelocation: 176,88,1
  Nodesize: 48,24
+
 
 +
You can also set this (via typescript) to control whether your own user-defined attributes display by Show. UDAs show by default.

Revision as of 00:31, 3 February 2007

Command Show identifier

Displays a brief listing of the attributes of an object, showing only the attributes most commonly of interest. Compare this to the Profile Command that displays every attribute of an object.

Example

Show Va1

Details

(new to 4.0) The Att_Showable attribute of the Attribute object controls whether the attribute is displayed by Show.

For example, try this:

  • Create a variable Va1
  • Press CTRL-' to open the typescript window. Follow along with this typescript dialog:
Untitled> Show Va1
Variable Va1
IsIn: Untitled
Nodelocation: 176,88,1
Nodesize: 48,24

Untitled> show Nodesize
Attribute Nodesize
Att_saveable: 1
Att_showable: 1
Untitled> Att_showable Nodesize:0
Untitled> show Nodesize
Attribute Nodesize
Att_saveable: 1
Att_showable: 0
Untitled> Show Va1
Variable Va1
IsIn: Untitled
Nodelocation: 176,88,1

You can also set this (via typescript) to control whether your own user-defined attributes display by Show. UDAs show by default.

Comments


You are not allowed to post comments.