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=13169 Printed Date: 22.Apr.2026 at 23:11
Topic: Lisp for Printing Points at Centroid of PolylinePosted By: nkc_13
Subject: Lisp for Printing Points at Centroid of Polyline
Date Posted: 21.Apr.2019 at 18:22
I have found the relevant lisp by Gruru Lee Mac, however, there is error msg "Region is not on the UCS plane: popped out for some object and I found that can be solved by converting the UCS as the object before creating the point at centroid of the polyline by the Lisp. May I ask is it possible to include the UCS command in the Lisp for each object? Greatly appreciate if any Master can help!
(defun c:pc ( / acdoc acspc acsel reg ) (vl-load-com) ;; ? Lee Mac 2011