Hello,
I need a highlight a simple straight line in some 3D sketch by API.Similar like if mouse cursor move under GUI.
I have tried this:
Sketch swSkx = (Sketch)swFtr.GetSpecificFeature2();
object[] objSegs = (object[])swSkx.GetSketchSegments();
foreach (object objSeg in objSegs)
{
SketchSegment swSeg = (SketchSegment)objSeg;
swSeg.Select4(true, null);
Body2 swWire = swSeg.CreateWireBody();
int iRes = swWire.Display3(swAsm.GetComponentByName(swFtr.Name),255, 0);
}
But it does not work.
Thank you for response.
Petr Bartoš
SolidworksApi macros
I need a highlight a simple straight line in some 3D sketch by API.Similar like if mouse cursor move under GUI.
I have tried this:
Sketch swSkx = (Sketch)swFtr.GetSpecificFeature2();
object[] objSegs = (object[])swSkx.GetSketchSegments();
foreach (object objSeg in objSegs)
{
SketchSegment swSeg = (SketchSegment)objSeg;
swSeg.Select4(true, null);
Body2 swWire = swSeg.CreateWireBody();
int iRes = swWire.Display3(swAsm.GetComponentByName(swFtr.Name),255, 0);
}
But it does not work.
Thank you for response.
Petr Bartoš
SolidworksApi macros