A vertex defines the start or endpoint of a segment and shows as a blue square when you select the polyline. One thing to note is that while it appears that you are continuing a PLINE, you are in fact drawing a new PLINE from the startpoint or the endpoint of the PLINE clicked, so using the "C" command to close the PLINE will only close it from where you started. Polylines contain one or more segments and every segment is essentially a line or arc. (and pt (wcmatch (cdadr (entget (entlast))) "*POLYLINE*")) (while (eq 1 (logand 1 (getvar "cmdactive"))) (setq p (getpoint "\nSpecify start point: "))) ((equal (vlax-curve-getendpoint ename) pend 0.0001) ((equal (vlax-curve-getstartpoint ename) pend 0.0001) (prompt (strcat "\nWidth is " (rtos wid))) The fuzz distance is the maximum distance two endpoints of individual polylines or lines can be separated by but still be joined. (wcmatch (cdadr (setq elst (entget (setq ename (car dat))))) (and (setq dat (entsel "\nSelect source polyline: ")) (defun C:SW (/ dat c elst wid ename pend pt) Here's the modified code that should be saved as "SW.lsp": SWPOLY command originally written by Gravatar Here's a link to the place where I got the original code from Gravatar: There are a few different ways that I've seen others code this functionality into ACAD, but I find that SWPOLY.lsp is the easiest to invoke and shortening the command to SW allows it to be an easy left-handed keyboard command that isn't being used in my accelerators/workflow. While I try my best, sometimes one must draw another PLINE, and join it to an existing PLINE since it appears that ACAD doesn't have a native command to continue a PLINE from the closest point clicked. I'm lazy so lazy that if I blink twice I get winded, so that means I really hate to prematurely end a PLINE command before completing it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |