How can help me, I want know when I pick on a segment from polyline is it a line or arc segment
One way would be to find the bulge value. You obtain the index of the picked segment by using the vlax-curve-* functions. In particular the
vlax-curve-GetClosestPointTo to get the exact point on the polyline from the entsel's point value. Then you get the paramater at that point through
vlax-curve-GetParamAtPoint. This value is a real, it's integer portion is the index of the previous vector point - so simply use fix to get the index of the selected vector.
Now get the bulge by using the ActiveX
GetBulge method. So you'll need to change the ename of the polyline to a vla-object (vlax-ename->vla-object
). Then use (vla-GetBulge <vla-obj> <index>). If the value is anything else than 0.0 then it's a curve, otherwise it's a line.