HyperWorks Desktop

*Part()

Specifies default part attributes such as part name, color, and visibility.

*Part()

Specifies default part attributes such as part name, color, and visibility.

Previous topic Next topic No expanding text in this topic  

*Part()

Specifies default part attributes such as part name, color, and visibility.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*Part(Default/"Name", On/Off, IDOn/IDOff, Color, Opaque/Transparent, Shaded/Wireframe, NoTrace/FullTrace/TraceBySteps/TraceLast)

Arguments

Names

Description

 

Default        

Indicates that all parts are displayed using the default settings.

 

"Name"

A specific part name.  Must be in double quotes.  Attributes are applied to specified part only.

 

 

 

 

On        

Displays the part in the graphic window.

 

Off        

Turns off the part displayed in the graphic window.

 

 

 

 

IDOn        

Displays the name of the part in the graphic window.

 

IDOff        

Turns off the name of the part displayed in the graphic window.

 

 

 

 

Color        

A number between 0 and 63 that specifies a color on the palette of 64 colors.

 

 

 

 

Opaque

Defines the part as see-through.

 

Transparent

Defines the part as clear.

 

 

 

 

Shaded

Renders the part as a filled object.

 

Wireframe

Renders the part as a wireframe object.

 

 

 

 

NoTrace

Turns off tracing for a part.

 

FullTrace

Displays the entire traced path of the part without animating.

 

TraceBySteps

Displays the traced path as the part passes each timestep.

 

TraceLast

Displays the traced path of the part restricted to the last five timesteps.

Example

• • •

*BeginGraphicDefaults()

     *SetOrientation(Top)

     *SetBackgroundColor(0)

     *Part(Default, On, IdOn, 12, Opaque, Shaded, NoTrace)

     *Part("P/12", Off, IdOff, 8, Transparent, Shaded, NoTrace)

     *Part("P/45", On, IdOff, 24, Transparent, Shaded, FullTrace)

     *Force(Default, Off, 2, Opaque, Shaded, NoTrace, Force, Resultant)

     *Marker(Default, Off, Idoff, 5, Opaque, Shaded, NoTrace)

     *Marker("M/9901", On, IdOn, 16, Opaque, Shaded, FullTrace)
     *Marker("M/9920", On, IdOff 32, Opaque, Shaded, NoTrace)

     *SetPartColorList(8,9,10,11,12,13,14,15)

*EndGraphicDefaults()

• • •

Application

HyperView.

Context

*BeginGraphicDefaults()

Comments

Default attributes for individual parts can be specified by including a *Part() statement for each part and using the name of the specific part in place of the Default option.

Transparent parts are translucent and reveal the obscured entities behind them.

Opaque parts are solid and hide the entities behind them.

FullTrace displays the traced path without animating the model.  The model must be animated for TraceBySteps and TraceLast to display the path of motion.

This statement is used in the Animation window.

See also

 

*Force()

*Marker()

List of Preference Statements