Points and CenterPoints

Top  Previous  Next

The difference between these two sorts of points is that CenterPoints are displayed as center points:





Programatically the difference is here:



   CComPtr<SketchPoint> pInventorPt;

   pSketch->SketchPoints->Add (pThePoint,VARIANT_TRUE,&pInventorPt);


That VARIANT_TRUE says "show as center point". Otherwise you should use VARIANT_FALSE.


You can get the setting for this in two ways:


   VARIANT_BOOL bHoleCenter ;

   pInventorPt->get_HoleCenter (&bHoleCenter) ; // first method


   bHoleCenter = pInventorPt->HoleCenter ; // second method




Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)