IManagedCentermarks.AddByWorkFeature Method

Method that creates a center mark that represents the work feature within the drawing view.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 25.0

Syntax

VB

Function AddByWorkFeature ( 
	name As String,
	workFeature As Object,
	drawingView As DrawingView,
	Optional centermarkStyle As CentermarkStyle = Nothing,
	Optional layer As Layer = Nothing
) As IManagedCentermark

C#

IManagedCentermark AddByWorkFeature(
	string name,
	Object workFeature,
	DrawingView drawingView,
	CentermarkStyle centermarkStyle = null,
	Layer layer = null
)

Parameters

name
Type: System.String
The name of the managed centermark.
workFeature
Type: System.Object
Specifies the work feature to create the center mark for. This can be a WorkPoint or WorkAxis object. In the case of a WorkAxis object, the work axis must be oriented so it is normal to the plane of the sheet. If an work axis is provided that does not meet this criteria the method will fail.
drawingView
Type: DrawingView
Specifies the drawing view to create the center mark within. When working with an assembly the input WorkPoint Or WorkAxis must always be with respect to the top-level. This means that work points Or axes that exist within the parts Or sub-assemblies must be represented by WorkPointProxy Or WorkAxisProxy objects.
centermarkStyle (Optional)
Type: CentermarkStyle
Object that specifies the center mark style to use for the center mark. If not specified, the style defined by the active standard is used.
layer (Optional)
Type: Layer
Object that specifies the layer to use for the center mark. If not specified, the layer defined by the active standard is used.

Return Value

Type: IManagedCentermark
The managed centermark.

See Also

Reference

IManagedCentermarks Interface
Autodesk.iLogic.Interfaces Namespace