AutoCAD Map 3D General Discussion

AutoCAD Map 3D General Discussion

Reply
Distinguished Contributor
n2itive
Posts: 104
Registered: ‎04-15-2003
Message 11 of 25 (1,289 Views)

Re: LABEL OBJECT DATA

11-11-2011 09:52 AM in reply to: Murph

Yes I did... but good thought, it's usually the little things like that that get me. Obviously, I'm not doing something right. However in the last few minutes I've copied and pasted all the data I need. So I appreciate the help but there's no need to waste any more time on this. Maybe some lonely, raining day I'll look into it more.

 

Thanks for the helps guys, sorry for getting a little frustrated towards one of the post.

 

Infrastructure Design Suite 2014
Civil 3D 2013 sp2
Windows 7 x 64, 16 GB
Intel Xeon @ 2.80 GHz
NVIDIA Quadro K2000
*Expert Elite*
antoniovinci
Posts: 1,657
Registered: ‎06-03-2011
Message 12 of 25 (1,287 Views)

Re: LABEL OBJECT DATA

11-11-2011 10:47 AM in reply to: n2itive

Dear Nelsons,
in my favourite Cad italian forum, I've posted months ago all the steps to achieve your goal.


I try to translate 'em in my poor english, so you'll figure out the "powerful beauty" of Civil/Map queries.

Glad to having motivated you, stay tuned...  

*Expert Elite*
Murph
Posts: 1,954
Registered: ‎11-13-2006
Message 13 of 25 (1,284 Views)

Re: LABEL OBJECT DATA

11-11-2011 10:57 AM in reply to: n2itive

nelsons wrote:

Yes I did... but good thought, it's usually the little things like that that get me. Obviously, I'm not doing something right. However in the last few minutes I've copied and pasted all the data I need. So I appreciate the help but there's no need to waste any more time on this. Maybe some lonely, raining day I'll look into it more.

 

Thanks for the helps guys, sorry for getting a little frustrated towards one of the post.

 


Text height may be the problem as well, or the layers, if your using C3D those two things can be a pita when you do regular cad stuff. : )


 

Murph
Supportting the troops daily.
Distinguished Contributor
albionpjl
Posts: 900
Registered: ‎12-10-2003
Message 14 of 25 (1,240 Views)

Re: LABEL OBJECT DATA

12-07-2011 04:09 AM in reply to: Murph

I came here with exactly the same question and cannot make head nor tail of the two suggested answers.

 

I used mapimport to import data from several mapinfo files. I import all the object data and have the importer  assign layers based on the uniqueid field in that data.  It is a simple matter to get it to import the point data as text when I import, but I can find no way to lable the polygons except by dtext and typing in the info read from the object data.

 

 

I tried adquery as suggested, but clicking on the object data option gives a box with blank fields.

Map attach breaks into two commands when I type it into the command line.

I tried the Suggestion about centroids [quote]

Use MAPCREATECENTROIDS to give you a point with object data. In the Task Pane, use data connect to add that layer to your map, then theme the layer to add labels as desired.[/quote]

But although I now have points with the object data. I do not know what the task pane is, don't know how to find data connect, and have no idea what is meant by theme the layer. 

 

 

As there is such a simple way to import the point info as text, surely there must  be a way to import a text object for the polygon info too?

 

ps I even tried turning on the ribbon, but all I see is the message 'The ribbon does not have any tabs or panels currently loaded'

C3d2012

*Expert Elite*
antoniovinci
Posts: 1,657
Registered: ‎06-03-2011
Message 15 of 25 (1,234 Views)

Re: LABEL OBJECT DATA

12-07-2011 05:07 AM in reply to: albionpjl

Here's the above mentioned translation from my mothertongue:

 

01] open an empty drawing

02] _MAPIMPORT the shape

03] save the drawing as BEFORE.DWG and close it

04] open an empty drawing  

05] _ADEDRAWINGS and attach BEFORE.DWG

06] _ADEQVIEWDWGS to see your map

07] _ADEQUERY

08] under QUERY TYPE choose LOCATION -> ALL -> OK

09] under QUERY MODE choose DRAW

10] under OPTIONS choose ALTER PROPERTIES -> TEXT -> EXPRESSION -> OBJECT DATA

11] choose the attribute to label -> OK -> input an suitable text height -> OK -> OK

12] EXECUTE QUERY 

13] zoom extents and save as AFTER.DWG 

Distinguished Contributor
albionpjl
Posts: 900
Registered: ‎12-10-2003
Message 16 of 25 (1,227 Views)

Re: LABEL OBJECT DATA

12-07-2011 05:49 AM in reply to: antoniovinci

Thank you very much. This is very helpful.

 I got that to work on my second attempt (must have got something wrong first time).

This will save me a great deal of time in the future.

Thanks again:womanhappy:

Active Contributor
foxeec
Posts: 34
Registered: ‎11-13-2006
Message 17 of 25 (1,221 Views)

Re: LABEL OBJECT DATA

12-07-2011 08:12 AM in reply to: n2itive

Another way to go about it:

 

First, use 'Mapimport' to bring in your closed polylines with object data.

then:
1- 'mapanntemplate'  (don't enter the quotes - you'll get a dialog box, when you hit ok, it'll open the block editor)
2- 'mapanntext' (then I hit 'enter' for new text.  You'll get a dialog box asking for infomation for you to supply for the label.  Under the 'value' box, you can specify a field from your object data to be supplied.  When it asks for the insertion, i always use 0,0; which inserts the text right where i need it inside the polylines.).  At that point, i close the block editor, saving my changes on the way.
3 - 'mapanninsert' (check the template you created, select your polylines, and voila!  Labels!

if the labels need to be tweaked, use the 'mapanntemplate' again, to edit the template contents, such as size, layer, etc.; then run the 'mapannupdate' command to have those changes reflected.

Lorrie

Distinguished Contributor
albionpjl
Posts: 900
Registered: ‎12-10-2003
Message 18 of 25 (1,216 Views)

Re: LABEL OBJECT DATA

12-07-2011 08:30 AM in reply to: foxeec

Thank you for replying, but that did not work.

 

In the dialogue box where I selected the value, there is another field called tag. the ok button was not selectable until I typed something in there but having no idea what the field means, I typed test

When I got to the mappinsert part, all of the labels that appeared read 'test' instead of taking information from the chosen objdata field.

What SHOULD go in tag?

 

 

Active Contributor
foxeec
Posts: 34
Registered: ‎11-13-2006
Message 19 of 25 (1,213 Views)

Re: LABEL OBJECT DATA

12-07-2011 08:33 AM in reply to: n2itive

Int the 'Tag' field, put whatever you like - test works.  Next to that in the 'Value' box, click the little button, and you should get a dialog box, where you can select object properties, object data, etc.

See if that works.

Active Contributor
foxeec
Posts: 34
Registered: ‎11-13-2006
Message 20 of 25 (1,208 Views)

Re: LABEL OBJECT DATA

12-07-2011 08:36 AM in reply to: n2itive

A little more clarification,

If i want to see the property owner, in the 'Tag' i would write Property Owner.  In the 'Value', i would browse to my object data and select 'propown', since thats that name of my field in the object data.

then when i do 'mapanninsert', it'll display the property owner of that property.  the 'tag' is just a placeholder.

Does that make more sense?

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.