Hide Table of Contents
AutoInsertCenterMarks Method (IView)

Obsolete. Superseded by IView::AutoInsertCenterMarks2.

.NET Syntax

Visual Basic (Declaration) 
Function AutoInsertCenterMarks( _
   ByVal InsertType As System.Integer, _
   ByVal InsertOption As System.Integer, _
   ByVal LinearSlotCenter As System.Boolean, _
   ByVal ArcSlotCenter As System.Boolean, _
   ByVal UseDocumentDefaults As System.Boolean, _
   ByVal Size As System.Double, _
   ByVal ExtendedLines As System.Boolean, _
   ByVal CenterLineFont As System.Boolean, _
   ByVal Angle As System.Double _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IView
Dim InsertType As System.Integer
Dim InsertOption As System.Integer
Dim LinearSlotCenter As System.Boolean
Dim ArcSlotCenter As System.Boolean
Dim UseDocumentDefaults As System.Boolean
Dim Size As System.Double
Dim ExtendedLines As System.Boolean
Dim CenterLineFont As System.Boolean
Dim Angle As System.Double
Dim value As System.Boolean
 
value = instance.AutoInsertCenterMarks(InsertType, InsertOption, LinearSlotCenter, ArcSlotCenter, UseDocumentDefaults, Size, ExtendedLines, CenterLineFont, Angle)
C# 
System.bool AutoInsertCenterMarks( 
   System.int InsertType,
   System.int InsertOption,
   System.bool LinearSlotCenter,
   System.bool ArcSlotCenter,
   System.bool UseDocumentDefaults,
   System.double Size,
   System.bool ExtendedLines,
   System.bool CenterLineFont,
   System.double Angle
)
C++/CLI 
System.bool AutoInsertCenterMarks( 
&   System.int InsertType,
&   System.int InsertOption,
&   System.bool LinearSlotCenter,
&   System.bool ArcSlotCenter,
&   System.bool UseDocumentDefaults,
&   System.double Size,
&   System.bool ExtendedLines,
&   System.bool CenterLineFont,
&   System.double Angle
) 

Parameters

InsertType
Features for which to insert center marks as defined in swAutoInsertCenterMarkTypes_e
InsertOption
Center mark options as defined in swCenterMarkConnectionLine_e
LinearSlotCenter
True to add center marks to slot centers, false to add them to slot ends
ArcSlotCenter
True to add center marks to arc centers, false to add them to arc ends
UseDocumentDefaults
True to use the display attribute defaults specified in Document Properties > Centerlines/Center Marks, false to use the display attributes set by this method
Size
Size of center mark; valid only if UseDocumentDefaults is false
ExtendedLines
True to extend lines from center mark points, false to not; valid only if UseDocumentDefaults is false
CenterLineFont
True to use the centerline font, false to not; valid only if UseDocumentDefaults is false
Angle
Rotation angle for the center mark; a positive angle rotates the center mark counterclockwise

Return Value

True if successful, false if not

Remarks

Call this method on each active view in which you want to insert center marks.

Before calling this method:

  1. Call IDrawingDoc::ActivateView with the name of the view to activate.
  2. Call IDrawingDoc::ActiveDrawingView to get a handle on the activated view.

Call IDrawingDoc::InsertCenterMark3 if you want to insert one center mark in one view.

 

See Also

Availability

SOLIDWORKS 2012 FCS, Revision Number 20.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AutoInsertCenterMarks Method (IView)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.