ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
ibioan b09/08/2024

Hello!

I have a 2D sketch in the current document and I want to be able to store under an object array - object[] - each contour detected using the SelectByID2 method with the "SKETCHCONTOUR" option. To use this method, I already have the first point of each contour.

So, each contour must be stored as an object type inside my object[] .

I can use (object[])swSketchMgr.ActiveSketch.GetSketchContours();