Print Page | Close Window

autolisp grade or slope percentage

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11804
Printed Date: 31.May.2026 at 20:24


Topic: autolisp grade or slope percentage
Posted By: pintseta
Subject: autolisp grade or slope percentage
Date Posted: 09.May.2016 at 16:02
hi,

i'm looking for lisp that could calculate the grade percentage of a polyline, or 2 points.
i'm doing it manually now by measuring the polyline by DIST, and the dividing the delta Y by delta x.
it doesn't need to necessarily calculate the percent itself, i'm fine with just the decimal fraction.
also it doesn't matter if the result will be in the command line or in inserted text.

i would be grateful for that, i'm looking everywhere and i cant even find some routine to modify with my limited knowledge of writing lisps. :)




Replies:
Posted By: philippe JOSEPH
Date Posted: 10.May.2016 at 07:23
uploads/175428/SLOPE.dwg" rel="nofollow - uploads/175428/SLOPE.dwg
Hello pintseta, I don't know if it will be useful for you but I personally use a little AutoCAD block here enclosed with 3 dimensions to indicate slopes on my drawings, it gives the angle and the percentage for an horizontal distance of 100.
I do this block and use it eventually scaled in each of my drawings in the same project. 



Print Page | Close Window