Hide Table of Contents
AutoInsertCenterMarks Method (IView)

Automatically inserts the specified center marks in this view.

.NET Syntax

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

Example

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) 2012 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.