• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy
  • Bahasa Indonesia

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
You are here: Home / AutoCAD / How to: Label Coordinate in AutoCAD

How to: Label Coordinate in AutoCAD

November 9, 2009 by Edwin Prakoso 121 Comments

I had this question several times: can we automatically label our coordinate in AutoCAD? If you are a Civil3D user, then you most likely will suggest them to use C3D. But can AutoCAD do it? YES!

I saw many people use AutoLISP to do that task. It works great. But sometimes you may want to have your labeling symbol and format. So, why not using field?

Creating a reference object

First, we need to create an object as a reference point. It can be a point, a circle, or any symbol you want it to appear. I use this symbol.

reference object

I prefer to use point or circle. We can easily use the point position or circle center.

Creating an Attribute Definition

After we have the reference object, we need to define an attribute definition. You can activate it by clicking it on your ribbon, home tab, block panel.

attdef

Or simply type ATTDEF then [enter].

Let’s define our attribute. Give the attribute tag, prompt like below. In default field, type ‘X Y = ‘ then click insert field.

Change the field category to objects, and in field names, select object. Click select object button to define the object type. Select the circle, don’t select anything else!

AutoCAD will list all available properties. Select center (or if you use point, select position). Because I only use it in 2D drawings, I don’t need it to display Z value. I turn it off. Change the format if necessary.Click OK.

define property

Click OK again to close the define attribute dialog box. Place your attribute definition in the desired location.

Optional: Define Adjustable Leader

If you don’t want to have a leader on your coordinate label, you can skip this step.

I add a line that will be used as the leader.

leader line

Create the Block

Now we can define the block. Click create from ribbon, block panel.

create block

Select all the objects, and define the center as an insertion point. Activate Open in Block Editor on the lower left of this dialog. We are going to add some ‘dynamic’ functionality. Click OK.

AutoCAD will show the edit attribute dialog. We don’t want to modify it as it is updated automatically. Just click OK.

Add the Control Grip

What we want to do is adding a grip control so that we can modify the text (and optionally leader) placement. In block authoring palette, activate the point parameter.

point parameter

Now place it where you want the grip to appear.

point parameter placement

Now activate the stretch action.

Select the point parameter, create the stretch frame like below, and select the line and attribute definition. [Enter] to end it.

cross polygon

Now we are done! Save this block and close block editor.

Using the Label

How can we use the label? Just insert the block, and click on the point you want to show the coordinate. After you have one of the blocks in your drawing, you can copy it and place it on several points you wanted.

Because we add a control grip, we can move the text and leader position!

control grip

Because we use a field, if you move your points, the value will be automatically updated! Very cool, isn’t it?

Why Attribute Definition? Why not Just Use Text?

You might ask this: why not just use text in a field? I know we can insert a field into a text, single or multiline. But it doesn’t work. You may want to try it by yourself.

Apparently, the field will consider the reference point always at 0,0,0 when you create a block. It works if you don’t create a block from them, but I believe you want to use it as reusable content, aren’t you?

Video Instruction

If you have problem, you can use this video as reference how to create and use the coordinate label block.

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

Filed Under: AutoCAD Tagged With: dynamic block, Fields

4.7 7 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

121 Comments
Inline Feedbacks
View all comments
Nilesh Bhosale
Nilesh Bhosale
8 years ago

as per your instructions i have created this label and it is showing exact co-ordinates in milimeters but i want this lables should show co-ordinates in meters ?? how to do it sir???

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Nilesh Bhosale
8 years ago

Hi, Nilesh.
The unit that is shown on the label is your current drawing unit. It is not possible to use fields if you don’t want to change the unit.
You can use AutoLISP solution for that purpose: Using AutoLISP Program to label point coordinate.

0
Reply
nathan
nathan
8 years ago

How can I add Latitude and Longitude to my blocks? Is it possible?

0
Reply
anthony
anthony
8 years ago

i don’t know what i did wrong but seems like it doesn’t show correct coordinates. i constantly change ucs for a specific drawing. maybe that’s why i;m having this king of error.

0
Reply
Sasi karthick A
Sasi karthick A
8 years ago

MLD; Multileader, is easy to apply the co-cordinate with “Insert field” of Mtext.

0
Reply
shiva
shiva
8 years ago

many thanks to you. your post has been useful for me.

0
Reply
Al-hassan Ibrahim
Al-hassan Ibrahim
8 years ago

How can i number it by my own sort ? Thnx

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Al-hassan Ibrahim
8 years ago

What do you mean? Which number you want to sort?

0
Reply
adepoju Saka
adepoju Saka
8 years ago

send the procedure and steps of plotting coordinate values in autocad to me

0
Reply
Fares
Fares
8 years ago

Hi Edwin

Is there a way to show the vertex z for line or circle

thanks

0
Reply
Vitor Takizawa
Vitor Takizawa
9 years ago

Thank you very much!

0
Reply
CADUSER
CADUSER
9 years ago

Lost you at some of the steps- not quite enough info. Could you post example file again?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  CADUSER
9 years ago

Try to download the sample file here.

0
Reply
« Previous 1 … 5 6 7 8 9 Next »
wpdiscuz   wpDiscuz

Featured

Autodesk Provides Dozens of Free Project-Based Learning Contents

Autodesk launched the Customer Success Learning Hub. There are dozens of free short courses that you can take for about 15 minutes a day to keep you sharp and competitive!

Recent Articles

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available

Advertisement

New on CADnotes

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available
  • Autodesk Forma Design Contest
  • Revit 2025: Toposolid Enhancements

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2025 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz