Hide Table of Contents

Get DimXpert Tolerance2 Example (C#)

This example builds a part to demonstrate usage of the SolidWorks Document Manager API for the following DimXpert annotations:

    *  Distance-between dimension tolerance

    *  Composite distance-between dimension tolerance

    *  Symmetry geometric tolerance

    *  Radius dimension tolerance

    *  Diameter dimension tolerance

//--------------------------------------------------------------------------

// 1. Open:

//    <SolidWorks_install_dir>\samples\tutorial\api\block.sldprt.

// 2. Open the DimXpert toolbar from View > Toolbars

//    (select the first instance of toolbars on the View menu).

// 3. Create a distance-between dimension tolerance:

//    a. Click Location Dimension on the DimXpert toolbar.

//    b. Click the left front face of the block.

//    c. Select Create Compound Plane from the DimXpert pop-up toolbar.

//    d. Click the right front face of the block.

//    e. Click the green check mark to accept the faces.

//    f. Click the back face of the block to complete the

//       location dimension.

//    g. Click outside the part to position the location dimension.

//    h. Click ESC to end dimensioning.

//    i. Observe the following Dimxpert annotations: DistanceBetween1

// 4. Create composite distance-between and radius dimension tolerances:

//    a. Click Auto Dimension Scheme on the DimXpert toolbar.

//    b. Select Part type:  Prismatic.

//    c. Select Tolerance type:  Plus and Minus.

//    d. Click in the Primary Datum field; select face in front of

//       right hole.

//    e. Click in the Secondary Datum field; select top face of block.

//    f. Select all feature filters.

//    g. Click the green check mark to accept the DimXpert settings.

//    h. Observe the following Dimxpert annotations:  Diameter1,

//       DistanceBetween5, Radius1.

// 5. Create a symmetry geometric tolerance:

//    a. Click Datum on the DimXpert toolbar.

//    b. Click the face in front of the left hole and click

//       outside the part to place Datum A.

//    c. Click the green check mark to finish the Datum definition.

//    d. Click Geometric Tolerance on the DimXpert toolbar.

//       In the Geometric Tolerance Properties dialog:

//             i. Select Symmetry from the Symbol dropdown list.

//            ii. Type A for the Primary Datum.

//           iii. Click the face in front of the right hole.

//            iv. Click outside the part to place the annotation.

//             v. Click OK to close the Geometric Tolerance Properties dialog.

//    e. Observe the following Dimxpert annotations: Symmetry1.

// 6. Close the part, saving it to another name.

//    NOTE: Because this part is used in a SolidWorks online

//          tutorial, do not save any changes to the original file name.

// 7. Read how to load and run Code_Example_CSharp with this part.

//---------------------------------------------------------------------------



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:   Get DimXpert Tolerance2 Example (C#)
*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) 2013 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.