Andrew1979 Posted December 15, 2012 Posted December 15, 2012 Here is a lisp routine that i use which I find quite useful. It inserts a vertice point on a polyline at any point you pick on the polyline. I find I use it for floor areas that need to be updated. I have a polyline outline but may need to change the shape to reflect the new floor area. Instead of redrawing the the polyline or manually breaking it and adding the addition, this lisp routine does it all as simple as a click. Hope everyone else finds it useful too, let me know (DEFUN C:plv () (setq obj (ssget)) (setq br1 (getpoint "\nPick Break Point: ")) (COMMAND "-GROUP" "c" "pl0" "" obj "" "BREAK" obj br1 br1 "pedit" "last" "j" "g" "pl0" "" "" "-group" "explode" "pl0") ) Quote
pBe Posted December 15, 2012 Posted December 15, 2012 (defun c:plv (/ pt obj) (cond ((and (setq pt (getpoint "\nPick Break point: ")) (setq obj (car (nentselp (setq pt (osnap pt "near"))))) (eq "LWPOLYLINE" (cdr (assoc 0 (entget obj)))) (command "_break" obj "_non" pt "_non" pt "_join" obj "_last" ""))))) Quote
SLW210 Posted December 17, 2012 Posted December 17, 2012 Andrew1979, Please read the CODE POSTING GUIDELINES and add Code Tags to your Code. Quote
Bill_Myron Posted December 17, 2012 Posted December 17, 2012 An uneeded lisp, as AutoCAD now uses Miltifunctional Grips for polylines, hatches, and even more in 2012. Multifunctional grips are controlled by GRIPMULTIFUNCTIONAL system variable. If you change it to 0, then it turns off multifunctional grips completely. If you change it to 1, then you still can use grip for editing and switch between options by pressing [ctrl] key. If you set it to 2, then you still can edit using grip by accessing menu like image above. If you use 3, then you can access this grip for editing both using [ctrl] key and menu. This is the default value. I have mine set to 1. I dont like the pop up that it brings, but I can select the grip and right click to access the options. Might save you a few keystrokes by using this. Quote
wingfold2001 Posted May 9, 2014 Posted May 9, 2014 (defun c:plv (/ pt obj) (cond ((and (setq pt (getpoint "\nPick Break point: ")) (setq obj (car (nentselp (setq pt (osnap pt "near"))))) (eq "LWPOLYLINE" (cdr (assoc 0 (entget obj)))) (command "_break" obj "_non" pt "_non" pt "_join" obj "_last" ""))))) This is a good one, thanks. Is it possible to end the routine with the polyline selected? Quote
motee-z Posted May 9, 2014 Posted May 9, 2014 (edited) any help to make it work on 3d polyline so the added point must have same elevation of picked point Edited May 9, 2014 by motee-z Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.