TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: newchurchr on February 17, 2021, 12:08:19 PM

Title: Getting Curve Data into a block lisp
Post by: newchurchr on February 17, 2021, 12:08:19 PM
Hi all
I am trying to simplify getting my curve data into the curve data block i use. I found several lisp that would get some of the data but not all and in the right format i need. I am a self taught beginner when i comes to writing lisp and  I have tried merging different lisp together to try and get what i need but have had no success. Attached is an example drawing and the block i use. Can anyone help me get the lisp i need for this?
Title: Re: Getting Curve Data into a block lisp
Post by: BIGAL on February 17, 2021, 08:39:08 PM
Explain what part your having problems with, as a example Lee-mac.com has a good pline detail lisp and it has the curve details may be useful.
Title: Re: Getting Curve Data into a block lisp
Post by: newchurchr on February 18, 2021, 11:35:33 AM
i need help on how to get the P.I. then i need to insert all that info into my block. I think i have code to get p.c. , p.t. radius and lengths but i dont know how to get it into my block.
Title: Re: Getting Curve Data into a block lisp
Post by: HOSNEYALAA on February 18, 2021, 01:46:39 PM
https://www.cadtutor.net/forum/topic/63984-getting-a-point-of-an-entity-inside-a-block-as-wcs-coordinates/?tab=comments#comment-527265
Title: Re: Getting Curve Data into a block lisp
Post by: HOSNEYALAA on February 18, 2021, 01:47:39 PM
https://www.cadtutor.net/forum/topic/68976-polyline-inside-block-coordinate/
Title: Re: Getting Curve Data into a block lisp
Post by: BIGAL on February 18, 2021, 06:03:37 PM
The PI can be calculated uisng (inters pt1 pt2 pt3 pt4 nil) where the points are the pline vertices. Note the 2D answer. So pt1 pt2 approaches the TP pt3 pt4 is exit the second TP.