Hide Table of Contents
SetTargetArea Method (IDatumTargetSym)

Sets the datum target area style and size.

.NET Syntax

Visual Basic (Declaration) 
Function SetTargetArea( _
   ByVal Shape As System.Integer, _
   ByVal Size1 As System.String, _
   ByVal Size2 As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IDatumTargetSym
Dim Shape As System.Integer
Dim Size1 As System.String
Dim Size2 As System.String
Dim value As System.Boolean
 
value = instance.SetTargetArea(Shape, Size1, Size2)
C# 
System.bool SetTargetArea( 
   System.int Shape,
   System.string Size1,
   System.string Size2
)
C++/CLI 
System.bool SetTargetArea( 
&   System.int Shape,
&   System.String^ Size1,
&   System.String^ Size2
) 

Parameters

Shape

Target area shape or style as defined in swDatumTargetAreaShape_e

Size1

Target area diameter or width (see Remarks)

Size2

Target area height (see Remarks)

Return Value

True if the target area parameters were set successfully, false if they were not

Remarks

If the target area style for this symbol is...

Then...

Point

There is one size value, which might be empty. Retrieve the text using an index value of 0. SOLIDWORKS displays the text in the upper half of the symbol, preceded by a diameter character.

Circle

There is one size value. Retrieve the text using an index value of 0. SOLIDWORKS displays the text in the upper half of the symbol, preceded by a diameter character.

Rectangle

There are two size values. Retrieve the text using an index value of 0 and 1. SOLIDWORKS displays the texts in the upper half of the symbol, separated by an x character.

If the specified target area style is not one of the values in swDatumTargetAreaShape_e, SOLIDWORKS does not modify the symbol, and the returns false.

Use IDatumTargetSym::GetTargetShape to get the target area style. Use IDatumTargetSym::GetTargetAreaSize to get the target area size.

To see the model or drawing changes, use IModelDoc2::GraphicsRedraw2 to redraw your window.

 

See Also

Availability

SOLIDWORKS 2000 FCS, Revision Number 8.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:   SetTargetArea Method (IDatumTargetSym)
*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) 2019 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.