Author Topic: calculate an area with a parallel line  (Read 4326 times)

0 Members and 1 Guest are viewing this topic.

TopoWAR

  • Newt
  • Posts: 133
calculate an area with a parallel line
« on: December 15, 2011, 04:07:11 PM »
Hello to all! Anyone know how to calculate from a given area lisp a parallel line, I show an example, thanks
Thanks for help

ronjonp

  • Needs a day job
  • Posts: 7186
Re: calculate an area with a parallel line
« Reply #1 on: December 15, 2011, 04:30:02 PM »

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

TopoWAR

  • Newt
  • Posts: 133
Re: calculate an area with a parallel line
« Reply #2 on: December 15, 2011, 04:39:35 PM »
ronjonp , thanks for replying, but not what I am concerned, I need to calculate an area based on a parallel line, let's see who help me, thanks
Thanks for help

ronjonp

  • Needs a day job
  • Posts: 7186
Re: calculate an area with a parallel line
« Reply #3 on: December 15, 2011, 04:52:18 PM »
Can't you select the two parallel lines, sort the endpoints, and use AT:AreaFromPoints to get the area?

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

TopoWAR

  • Newt
  • Posts: 133
Re: calculate an area with a parallel line
« Reply #4 on: December 15, 2011, 05:05:33 PM »
ronjonp , see this sample video:
« Last Edit: December 15, 2011, 05:20:36 PM by TopoWAR »
Thanks for help

CAB

  • Global Moderator
  • Seagull
  • Posts: 10389
Re: calculate an area with a parallel line
« Reply #5 on: December 15, 2011, 07:42:05 PM »
I don't understand how you are creating the polygon.
But that is what you want the area of?
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Lee Mac

  • Seagull
  • Posts: 12397
  • London, England
Re: calculate an area with a parallel line
« Reply #6 on: December 15, 2011, 07:49:07 PM »
Or are you trying to determine the position of the parallel line based on a set area?

TopoWAR

  • Newt
  • Posts: 133
Re: calculate an area with a parallel line
« Reply #7 on: December 15, 2011, 07:58:45 PM »
Lee Mac , correct master

example:
1 - (getpoint) point 1 = p1
2 - (getpoint) point 2 = p2
3 - (getpoint) first address = p3
4 - (getpoint) second address p4
5 - Enter the area to calculate: eg 15000
6 - calculate 2 new items to the area indicated, using the pt1 to pt2 parallel

thanks for your patience
climb another clear example

« Last Edit: December 15, 2011, 08:06:34 PM by TopoWAR »
Thanks for help

Pad

  • Bull Frog
  • Posts: 320
Re: calculate an area with a parallel line
« Reply #8 on: December 16, 2011, 05:39:09 AM »
very handy if this could be done, I always resort to offsetting a little at a time.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10389
Re: calculate an area with a parallel line
« Reply #9 on: December 16, 2011, 08:12:04 AM »
Very perceptive of you Lee.  8-)

Given the end points of two lines and the area desired it should not be too difficult to do.
I think I remember a similar thread.

No time this morning but I'm sure someone will offer a solution.

I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

adam_s

  • Mosquito
  • Posts: 1
Re: calculate an area with a parallel line
« Reply #10 on: December 16, 2011, 12:13:45 PM »
Hi TopoWAR,
maybe this one is helpful for you. It`s not my work, I found it on the web, but don`t remember where....

TopoWAR

  • Newt
  • Posts: 133
Re: calculate an area with a parallel line
« Reply #11 on: December 16, 2011, 12:50:36 PM »
adam_s , more than excellent, thanks for help :lol:
Thanks for help

Lee Mac

  • Seagull
  • Posts: 12397
  • London, England
Re: calculate an area with a parallel line
« Reply #12 on: December 16, 2011, 01:23:29 PM »
Here is my quick derivation for those who want to code it:



[ Excuse my dimensioning | programmer not draftsman ]

efernal

  • Newt
  • Posts: 198
e.fernal

efernal

  • Newt
  • Posts: 198
Re: calculate an area with a parallel line
« Reply #14 on: December 18, 2011, 08:55:56 AM »
done...
e.fernal