IManagedCentermarks.AddByCenterOfGravity Method

Method that creates a center mark at the center of gravity of the model in the input drawing view. This will fail in the case where the view does not contain any solid parts.

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

Syntax

VB

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

C#

IManagedCentermark AddByCenterOfGravity(
	string name,
	DrawingView drawingView,
	CentermarkStyle centermarkStyle = null,
	Layer layer = null
)

Parameters

name
Type: System.String
The name of the managed centermark.
drawingView
Type: DrawingView
Specifies the view to create the center mark for.
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