Gi7 Posted October 2, 2021 Share Posted October 2, 2021 I want to get cg for an flat layout can some one help me kaka_floor_plan.dwg Quote Link to comment Share on other sites More sharing options...
CADTutor Posted October 3, 2021 Share 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 Link to comment Share on other sites More sharing options...
BIGAL Posted October 4, 2021 Share 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 Link to comment Share on other sites More sharing options...
eldon Posted October 4, 2021 Share Posted October 4, 2021 Have you tried using the Geometric Centre Osnap? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 6, 2021 Share Posted October 6, 2021 GCEN Quote Link to comment Share on other sites More sharing options...
Gi7 Posted October 7, 2021 Author Share Posted October 7, 2021 i have used mass prop and other but it looks like the cg is little far from actual Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 8, 2021 Share 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 Link to comment Share on other sites More sharing options...
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.