pnorman
2005-05-16, 10:53 PM
Can someone please help me with the following. I cannot get the polyline bulge to work. Either I am not setting the bulge value correctly or I am not specifying the vertex properly. I am trying to define a lwpolyline using vla-addLightweightPolyline (instead of (command "_pline"...)). Everything works except adding the arcs using vla-setbulge...
I am trying to get the arc parts of the polyline to match radius RI
see attached beam.DWG
(setq PTLIST (list P1 P2 P2A P5 P6 P7 P8 P9A P11 P12 P13A P15 P16 P17 P18 P19A P1))
(setq PTLIST (apply 'append PTLIST))
(setq SA1 (vlax-make-safearray vlax-vbDouble (cons 0 (- (vl-list-length PTLIST) 1))))
(vlax-safearray-fill SA1 PTLIST)
(setq OBJ (vla-addLightweightPolyline (model-space) SA1))
(setq BLG (- 0 (tan (/ 90 0.25))))
(vla-setbulge OBJ 3 BLG)
(vla-setbulge OBJ 5 BLG)
(vla-setbulge OBJ 11 BLG)
(vla-setbulge OBJ 13 BLG)
Thanks
P
I am trying to get the arc parts of the polyline to match radius RI
see attached beam.DWG
(setq PTLIST (list P1 P2 P2A P5 P6 P7 P8 P9A P11 P12 P13A P15 P16 P17 P18 P19A P1))
(setq PTLIST (apply 'append PTLIST))
(setq SA1 (vlax-make-safearray vlax-vbDouble (cons 0 (- (vl-list-length PTLIST) 1))))
(vlax-safearray-fill SA1 PTLIST)
(setq OBJ (vla-addLightweightPolyline (model-space) SA1))
(setq BLG (- 0 (tan (/ 90 0.25))))
(vla-setbulge OBJ 3 BLG)
(vla-setbulge OBJ 5 BLG)
(vla-setbulge OBJ 11 BLG)
(vla-setbulge OBJ 13 BLG)
Thanks
P