Method that creates a center line that represents the work feature within the drawing view.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 30.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 IManagedCenterline
C#
IManagedCenterline AddByWorkFeature( string name, Object workFeature, DrawingView drawingView, CentermarkStyle centermarkStyle = null, Layer layer = null )
Parameters
- name
- Type: System.String
The name of the managed centerline. - workFeature
- Type: System.Object
Specifies the work feature to create the center line for. This can be a WorkAxis or WorkPlane object. In the case of a WorkPlane object, the work plane must be oriented so it is perpendicular to the plane of the sheet, (only the edge of the work plane is visible within that view). If an work plane is provided that does not meet this criteria the method will fail. When working with an assembly the input WorkAxis Or WorkPlane 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 WorkAxisProxy Or WorkPlaneProxy objects. - drawingView
- Type: DrawingView
Specifies the drawing view to create the centerline within. - centermarkStyle (Optional)
- Type: CentermarkStyle
Object that specifies the center mark style to use for the centerline. 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 centerline. If not specified, the layer defined by the active standard is used.
Return Value
Type: IManagedCenterlineThe managed centerline.