Gi7 Posted October 2, 2021 Posted October 2, 2021 I want to get cg for an flat layout can some one help me kaka_floor_plan.dwg Quote
CADTutor Posted October 3, 2021 Posted October 3, 2021 @Gi7 The more information you provide, the more likely you are to get a good response to your question. I'm not sure there is enough information in your opening post. 2 Quote
BIGAL Posted October 4, 2021 Posted October 4, 2021 It looks like the Massprop report, ok very simple, a option is write to file so you do that and then read the file and get the centroid, do via a lisp. 2nd try this (setq pt (osnap (getpoint "\nselect pline ") "gcen")). You will have to have polylines for it to work so need Bpoly as well. (while (setq pt (getpoint "\nPick inside area Enter to exit")) (command "bpoly" pt "") (setq obj (vlax-ename->vla-object (entlast))) (setq cpt (osnap (vlax-curve-getStartPoint obj) "gcen")) (command "erase" (entlast) "") (princ cpt) ; do your thing ) Quote
eldon Posted October 4, 2021 Posted October 4, 2021 Have you tried using the Geometric Centre Osnap? Quote
Gi7 Posted October 7, 2021 Author Posted October 7, 2021 i have used mass prop and other but it looks like the cg is little far from actual Quote
BIGAL Posted October 8, 2021 Posted October 8, 2021 I checked mass prop compared to gcen and they were the same if you want a overall for the shapes in the dwg you need a outer pline. Did find do a UCS W 1st. 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.