Get DimXpert Intersect Features Example (C#)
This example builds a part to demonstrate usage of the
SolidWorks Document Manager API for the following DimXpert features:
*
Intersect
Point
*
Intersect
Line
*
Intersect
Circle
*
Intersect
Plane
//--------------------------------------------------------------------------
// 1.
Open:
// <SolidWorks_install_dir>\samples\tutorial\api\face_plate_ads_geo.sldprt
// 2.
Open the DimXpert toolbar from View > Toolbars
// (select the first instance
of Toolbars on the View menu).
// 3.
Create a DimXpert Intersect Point Feature:
// a.
Click the Location Dimension icon on the DimXpert toolbar.
// b.
Select the front face of the part.
// c.
Select the Create Intersection Point icon from the DimXpert pop-up menu.
// d.
Select a cylinder whose axis intersects the first face at a point.
// e.
Click the green check mark in the pop-up menu to create the
// intersect
point.
// f.
Select a feature on the part to dimension against the intersect point.
// g.
Click outside the part to position the dimension in the view.
// h.
Observe the new Dimxpert feature on the DimXpertManager tab:
// Intersect
Point1
// 4.
Create a DimXpert Intersect Line Feature:
// a.
Click the Location Dimension icon on the DimXpert toolbar.
// b.
Select the front face of the part.
// c.
Select the Create Intersection Line icon from the DimXpert pop-up menu.
// d.
Select a perpendicular plane that would intersect the first plane
// if extended
(e.g., a top or side face of the part)
// e.
Click the green check mark in the pop-up menu to create the
// intersect
line.
// f.
Select a feature on the part to dimension against the intersect line.
// g.
Click outside the part to position the dimension in the view.
// h.
Observe the new Dimxpert feature on the DimXpertManager tab:
// Intersect
Line1
// 5.
Create a DimXpert Intersect Circle Feature:
// a.
Click the Size Dimension icon on the DimXpert toolbar.
// b.
Select the front face of the part.
// c.
Select the Intersect Circle icon from the DimXpert pop-up menu.
// d.
Select the opening conical surface of a flat head machine screw
// (LPattern1
or LPattern3) in the part.
// e.
Click the green check mark in the pop-up menu to finish the dimension.
// f.
Click outside the part to position the size dimension in the view.
// g.
Observe the new Dimxpert feature on the DimXpertManager tab:
// Intersect
Circle1
// 6.
Create a DimXpert Intersect Plane Feature:
// a.
Click the Location Dimension icon on the DimXpert toolbar.
// b.
Zoom in on a flat head machine screw (LPattern1 or LPattern3).
// c.
Select the opening conical surface of a flat head machine screw
// in the
part.
// d.
Select the Intersect Plane icon from the DimXpert pop-up menu.
// e.
Select the inner cylindrical bore face of the flat head machine screw.
// f.
Click the green check mark in the pop-up menu to create the
// intersect
plane.
// g.
Select the top face of one of the extruded entities.
// h.
Click outside the part to position the location dimension in the view.
// i.
Observe the new Dimxpert feature on the DimXpertManager tab:
// Intersect
Plane1
// 7.
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.
// 8.
Read how to load and run Code_Example_CSharp
with this part.
//---------------------------------------------------------------------------