[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Find the Centers of Triangular Objects
Tip# 3892 By Kent Cooper On 17-May-2012
0
Rated By 0 users Downloaded : 464
Categories : Programming Examples, LISP Code Modules, Coordinates
Software type : AutoCAD 2013
Rename File To : TriangleCenters.lsp
Select triangular closed polylines and find any of the centers of an object.

Kent Cooper expands on Cadalyst CAD Tip No. 3830 with a routine that allows you to select a triangular closed polyline in AutoCAD. Moreover, this routine enables you to find any of the various "centers" of a triangular object, the definitions of which are included in the heavily documented LISP code. The five included functions (TCE, TI, TCI, TO, TN) are intended to be called from other LISP functions and will return the expected coordinates. Optionally, you can call any of these functions at the Command line wherever a point is expected.

 

Average Rating:
0


User comments
Comment by Cooper,Kent
Posted on 2012-09-17 12:09:51
Just so you know (before downloading) what center locations those function names find: TCE = Triangle CEntroid [intersection of medians, "center of gravity"]; TI = Triangle Incenter [intersection of angle bisectors]; TCI = Triangle CIrcumcenter [intersection of perpendicular bisectors of sides]; TO = Triangle Orthocenter [intersection of altitudes]; TN = Triangle Nine-point center [center of circle through midpoints, bases of altitudes, et al].