Author Topic: Getting Curve Data into a block lisp  (Read 350 times)

0 Members and 1 Guest are viewing this topic.

newchurchr

  • Mosquito
  • Posts: 2
Getting Curve Data into a block lisp
« 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?

BIGAL

  • Swamp Rat
  • Posts: 674
  • 30 + years of using Autocad
Re: Getting Curve Data into a block lisp
« Reply #1 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.
A man who never made a mistake never made anything

newchurchr

  • Mosquito
  • Posts: 2
Re: Getting Curve Data into a block lisp
« Reply #2 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.



BIGAL

  • Swamp Rat
  • Posts: 674
  • 30 + years of using Autocad
Re: Getting Curve Data into a block lisp
« Reply #5 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.
A man who never made a mistake never made anything