cjk Posted November 23, 2010 Posted November 23, 2010 Does anyone have a lisp routine that can create a polyline from a given area & one given x or y distance? We have a list of room areas that we must have the exact SF & fit several of these rooms into an existing floor plan. It is very tedious to change a vertex to get the SF. Quote
nestly Posted November 23, 2010 Posted November 23, 2010 Not a lisp, but did you know you can create a rectangle based on area and the length of one of the sides? http://screencast.com/t/6xHqF6XX Quote
edwinprakoso Posted November 23, 2010 Posted November 23, 2010 Have you tried using parametric feature? You should be able to do it, but you need to be good in math Quote
edwinprakoso Posted November 23, 2010 Posted November 23, 2010 (edited) I created this code for regular polygons. Please don't laugh... this is my 2nd AutoLISP code ; This LISP will create regular polygon by defining polygon area and number of sides ; Created by Edwin Prakoso ; Website: http://cad-notes.com (defun c:polyarea (/ n a apt) (setq n (getint "\nNumber of Polygon Sides: ")) (setq a (getreal "\nExpected Area: ")) (setq apt (sqrt (/ (/ a (/ (sin(/ pi n)) (cos(/ pi n)))) n))) ;calculating apothem for circumscribed polygon (setq ptloc (getpoint "\nPick Location: ")) (command "_POLYGON" n ptloc "C" apt) ) Edited November 24, 2010 by edwinprakoso Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.