HyperWorks Desktop

*Part()

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

*Part()

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

Previous topic Next topic No expanding text in this topic  

*Part()

Specifies 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("Name", On/Off, IDOn/IDOff, Color/"Material Name", Opaque/Transparent, Shaded/Wireframe, NoTrace/FullTrace/TraceBySteps/TraceLast, MeshStyle)

Arguments

Name

Description

 

"Name"        

The part name. Must be in double quotes.

 

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.

 

"Material Name"

The material name (used if the specified part references a material).

 

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.

 

MeshStyle

Optional argument.  Displays various line types on the part:

Msh - displays mesh lines superimposed on the part

Ftl - displays feature lines superimposed on the part.

Edg - displays edges superimposed on the part.

NoL - displays no lines.  This is the default if the argument is omitted.

Example

*BeginGraphic()

      • • •

    *Part("Sphere 12", On, 7, Opaque, Sha,
        TraceBySteps)

      • • •

*EndGraphic()

Application

MotionView.

Context

*BeginGraphic()

*BeginPage()

Report Definitions

Comments

Part names appear in the Entity list on the Part Attributes panel.

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.

Colors are numbered from left to right, top to bottom starting with 0 in the Entity Attributes panel.

If a part references a material, a material name must be specified instead of a color number.

See also

 

*BeginGraphic()

*BeginMaterial()

*ClippingRegion()

*Force()

*LightInfo()

*Marker()

*ModelSource()

*Preferences() - Graphics Files

*RotationAngle()

*Tracking()

*View()

List of Session Statements