Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
calculate an area with a parallel line
« previous
next »
Print
Pages: [
1
]
2
All
|
Go Down
Author
Topic: calculate an area with a parallel line (Read 6692 times)
0 Members and 1 Guest are viewing this topic.
TopoWAR
Newt
Posts: 135
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
Logged
Thanks for help
ronjonp
Needs a day job
Posts: 7529
Re: calculate an area with a parallel line
«
Reply #1 on:
December 15, 2011, 04:30:02 PM »
Maybe this will help you:
http://www.theswamp.org/index.php?topic=37824.msg428670#msg428670
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
TopoWAR
Newt
Posts: 135
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
Logged
Thanks for help
ronjonp
Needs a day job
Posts: 7529
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?
Logged
Windows 11 x64 - AutoCAD /C3D 2023
Custom Build PC
TopoWAR
Newt
Posts: 135
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
»
Logged
Thanks for help
CAB
Global Moderator
Seagull
Posts: 10401
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?
Logged
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: 12915
London, England
WWW
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?
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
TopoWAR
Newt
Posts: 135
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
»
Logged
Thanks for help
Pad
Bull Frog
Posts: 342
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.
Logged
CAB
Global Moderator
Seagull
Posts: 10401
Re: calculate an area with a parallel line
«
Reply #9 on:
December 16, 2011, 08:12:04 AM »
Very perceptive of you Lee.
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.
Logged
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
Guest
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....
Logged
TopoWAR
Newt
Posts: 135
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
Logged
Thanks for help
Lee Mac
Seagull
Posts: 12915
London, England
WWW
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 ]
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
efernal
Bull Frog
Posts: 206
WWW
Re: calculate an area with a parallel line
«
Reply #13 on:
December 16, 2011, 02:46:44 PM »
THIS?
http://www.gr-acad.com.br/Pacote/efpac0206.html
Logged
e.fernal
efernal
Bull Frog
Posts: 206
WWW
Re: calculate an area with a parallel line
«
Reply #14 on:
December 18, 2011, 08:55:56 AM »
done...
Logged
e.fernal
Print
Pages: [
1
]
2
All
|
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
calculate an area with a parallel line