AutoCAD Map 3D
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
polygon centroid problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi all,
I have several mpolygons, that i want to query and bring some object data as well (as text). The problem is that when the centroid of the mpolygon is outside the outline, my text inserts outside, too. Is there a way to insert them "inside" the polygon? Many thanks in advance!
Solved! Go to Solution.
Re: polygon centroid problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi from France
I haven't any MAP or CIVIL avallable during WE but
there is a special ADE command (since the first ADE module with ACAD R13/R12)
which is called : ADETEXTLOC ( Automatic repeat command )
So you have to use it on every MPolygon, closed Pline where the centroid seems to be outside
ADETEXTLOC will create a special XDATA which is in fact the "future" LABELPOINT
which will be used in your future query with properties alteration and text creation
(for example: .AREA , .LENGTH , .LAYER , or any Object Data Value)
Do you see what I mean ? I can't help you more without MAP/CIVIL running ...
Good Luck, Patrice
Re: polygon centroid problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Patrice, that worked perfectly! the only problem is that I have too many polygons that I can't handle one by one. It would be perfect for my project (and my boss : | ) if there was an automatic way of indicating the new labelpoints, I'll stick to that solution however, for now! I salute France! Greetings from bankrupt Greece!
Colin
Re: polygon centroid problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello
For your problem, I am working like this ...
Command: MULTIPLE
Command to repeat: ADETEXTLOC
CLIC
and then Next object ...
<ESC> <ESC> to stop the repeated command ADETEXTLOC !
Sorry I don't konow how for exmaple a Lisp/VLisp routien could be better / faster !?
Bye, Patrice
Re: polygon centroid problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I think there's no way to automatize the ADETEXTLOC process on many polygons at once, just because every closed object needs a new position clicked by hand.
Moreover, the ADETEXTLOC command doesn't know if a centroid lies inside or outside a polygon...
Merci beaucoup, monsieur.
