Search the Community
Showing results for tags 'polyline'.
Found 104 results
pryzmm posted a topic in AutoLISP, Visual LISP & DCLhi, i'm still a beginner in lisp and need some help from you guys; ;;;---- lets say i have a closed polyline outline (shape like a light bulb) that consist of lines and arc as my base entity. if i were to use "divide" say by "50 segments" (user input) on this polyline can this 50 nodes or more that has been created be use to trace the outline of the entity using "polyline" by lisp. i will then use this newly created closed polyline (all lines) to be the "wipeout" frame as we know that only close "polyline" (all lines) are accepted. i use acad (archi) 2009 (win xp) ;;;sequence summary ;;;-------------------------- ; prepares the base entity using polyline (lines, arc) before lisp initiation. ;(defun c:dw () ; short for divide-wipeout ;(setq oldpdmode (getvar "pdmode")) ;(setq p1 (entsel "\n select entity") ; selection set p1 ; ensure that the selection is a polyline otherwise alert the user and re-select. ;(command ".divide" p1 "ask user for input") ; divide command that will ask user on how many segment req. ; use the nodes/points that the ".divide" command created and begin "pline" command to trace those nodes and then close the pline. ; (command "wipeout" "p" entlast "y") ; deletes all the pdmode points ; (princ) exit cleanly ;;;-------------------------- thank you in advance
Hi, I'm trying to divide up a closed polyline with the blue line that intersects with it. I'm able to get the vertices for the intersection points. The end result should have 2 separate closed polylines. I've checked on the internet, and found some Lisp code, which unfortunately, I do not know how to interpret Does anyone know how to go about it? I'm progamming in C# .Net. Thank you. Special cases I will need to work out later: 1) One of the intersection points are on a vertex. 2) Both intersection points are on different vertices. 3) Both intersection points are on the same axis, i.e. the blue line is on one of the edges.
Hello All, First post and novice AutoCAD LT 2009 user here, so please go easy! I've lurked for a while gratefully harvesting some handy hints, but this time after much searching I've realised I need to post my own plea for assistance. I'm creating drawings which show areas with heating in the floor. I hope that someone can point me at a shortcut/tool/addon which can save me some laborious polyline work in getting those heating pipes into rooms! I need to fill areas with lines at specific spacings, usually 200mm between lines. This can vary, but I'll keep it simple for now. The patterns which I need to fill the areas with are shown below (spiral and serpentine). Not a great problem for a regular room shape, but a pain if the rooms are irregular shapes, particularly when I'm doing the spiral layout. Being able to specify some additional criteria is also important, but for now I'm trying to keep my request to the bare minimum. This seems like the sort of thing there is probably a tool or addon for, but I haven't been able to find anything yet. Any help will be very gratefully received! Its driving me a bit nuts thinking I can't find a solution for something seemingly simple.
Hi, I found when I searched under "grips and nodes" the question posed "How do I insert a new grip or node in to an existing polyline? " and the answer "PEDIT command" now my question is this: what do I do to add more nodes with the PEDIT command options? we are using 2005 auotcad. if this works it will save my boss a huge amount of time....