By selecting the sketch,i have to measure distance between the every two lines to find out the gap in all area through macro.
Dim swApp As SldWorks.SldWorks
Dim swmodel As SldWorks.ModelDoc2
Dim swsel As SldWorks.SelectionMgr
Dim swfeature As SldWorks.Feature
Dim swsketch As SldWorks.Sketch
Dim SWSKETchSEG As SldWorks.SketchSegment
Dim SWSEG As Variant
Dim i As Integer
Set swApp = Application.SldWorks
Set swmodel = swApp.ActiveDoc
Set swsel = swmodel.SelectionManager
Set swfeature = swsel.GetSelectedObject6(1, -1)
Set swsketch = swfeature.GetSpecificFeature2
SWSEG = swsketch.GetSketchSegments
For i = 0 To UBound(SWSEG)
Set SWSKETchSEG = SWSEG(i)
Please help me out of this.
Thanks in advance,
I haven't tried it with sketchsegments but take a look at Distance Property (IMeasure) and other members of IMeasure interface
2014 SOLIDWORKS API Help - IMeasure Interface Members
Thanks,i will check
Retrieving data ...