Share

LineStripGraphics Object

Derived from: GraphicsPrimitive Object

Description

The LineStripGraphics Object. The LineStripGraphics object defines a set of connected lines.

Methods

Name Description
Delete Method that deletes the graphics primitive.
GetCustomLineType Method that returns information regarding the custom line type in use. The method returns a failure if the return value of the LineType property is not kCustomLineType.
GetStripLengths Method that returns the current strip lengths. The strip lengths are defined by the number of coordinates used for each strip.
GetTransformBehavior Returns the current view transformation settings (e.g. pixel scaling and front facing).
GetViewSpaceAnchor Method that gets the anchor information of the graphics object. This method returns an error if the 'Anchored' property returns False.
PutStripLengths Method that sets the current strip lengths. The strip lengths are defined by the number of coordinates used for each strip.
RemoveViewSpaceAnchor The RemoveViewSpaceAnchor method removes the view space anchor from the object, and sets the Anchored property to false.
SetCustomLineType Method that sets a custom line type to the curve from the specified .lin file. The method automatically changes the value of LineType property to kCustomLineType.
SetTransformBehavior Sets the view transformation settings (e.g. pixel scaling and front facing).
SetViewSpaceAnchor Method that anchors the graphics object at the specified point in view space. The Anchored property is set to True.

Properties

Name Description
Anchored Property that indicates whether this graphics primitive is anchored in view space. This property can only be set to False. The Anchored property is automatically set to True by the SetViewSpaceAnchor method.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
BurnThrough Read-write property that specifies whether or not graphics are always visible even if they are blocked by other objects.
ColorBinding Gets and sets how colors are defined for the line.
ColorIndexSet Gets and sets the GraphicsIndexSet that defines the indices within the GraphicsColorSet to use.
ColorSet Gets and sets the GraphicsColorSet associated with the set.
CoordinateIndexSet Gets and sets the GraphicsCoordinateIndexSet that defines the indices within the coordinate set to use for the lines of the set.
CoordinateSet Gets and sets the GraphicsCoordinateSet associated with the set.
DepthPriority Read-write property that allows you to specify a display priority to the set.
Id Read-only property that returns the Id of the object.
LineDefinitionSpace Gets and sets the LineDefinitionSpace applied to this line strip graphics.
LineScale Gets and sets the LineScale applied to this line strip graphics.
LineType Property that gets and sets the line type override. Setting the property to kDefaultLineType restores the default line type. If the property returns kCustomLineType, the GetCustomLineType method can be used to get further details about the line type.
LineWeight Gets and sets the LineWeight applied to this line strip graphics.
Parent Property that returns the parent object from whom this object can logically be reached.
RangeBox Property that returns a Box object which contains the opposing points of a rectangular box that is guaranteed to enclose this object.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

GraphicsNode.AddLineStripGraphics, GraphicsNodeProxy.AddLineStripGraphics

Samples

Name Description
Client Graphics - Line This sample demonstrates the creation of custom graphics using LineGraphics and LineStripGraphics. The same set of coordinate data is used for both types of graphics. Line graphics use two coordinates to define a line, and then the next two coordinates to define the next line, and so on through the defined coordinates. For the data provided, this results in gaps in the drawn curve. Line strips use the first two coordinates to define the first line and then the last point of the first line becomes the first point of the second line and the next coordinate is used as the end point of the second line. This results in the set of points being connected by a continuous set of lines, drawing a continuous curve. This sample also demonstrates two methods of defining the color for client graphics. In one case it uses an existing appearance asset, and in the other, it explicitly defines a color and assigns it. To use the sample you need to have an assembly or part document open. The program has two behaviors: the first time it is run it will draw the graphics. The second time it is run it deletes the previously drawn graphics.

Version

Introduced in version 5

Was this information helpful?