Upload
dragan-radulovic
View
219
Download
0
Embed Size (px)
Citation preview
7/27/2019 How to - Label Coordinate in AutoCAD
1/4
How to: Label Coordinate in AutoCAD
November 9, 2009 byEdwin Prakoso59 Comments
18
1
0
3
I had this question several times: can we automatically label our coordinate in AutoCAD? If you are
Civil3D user, then you most likely will suggest them to use C3D. But can AutoCAD actually do it? YES!
I saw many people use AutoLISP to do that task. It works great. But sometimes you may want to have
your own 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.
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.
Or simply type ATTDEF then [enter].
Lets define our attribute. Give the attribute tag, prompt like below. In default field, type X Y = then
click insert field.
http://www.cad-notes.com/author/edwinp/http://www.cad-notes.com/author/edwinp/http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/#disqus_threadhttp://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/#disqus_threadhttp://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/#disqus_threadhttp://www.facebook.com/sharer.php?u=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/http://www.facebook.com/sharer.php?u=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://twitter.com/share?original_referer=http%3A%2F%2Fwww.cad-notes.com%2F&source=tweetbutton&text=How+to%3A+Label+Coordinate+in+AutoCAD&url=http%3A%2F%2Fwww.cad-notes.com%2F2009%2F11%2Fhow-to-label-coordinate-in-autocad%2F&via=CADnoteshttps://twitter.com/share?original_referer=http%3A%2F%2Fwww.cad-notes.com%2F&source=tweetbutton&text=How+to%3A+Label+Coordinate+in+AutoCAD&url=http%3A%2F%2Fwww.cad-notes.com%2F2009%2F11%2Fhow-to-label-coordinate-in-autocad%2F&via=CADnoteshttps://www.linkedin.com/cws/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://www.linkedin.com/cws/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://plus.google.com/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://plus.google.com/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/http://lh6.ggpht.com/_Uq907Hmj7AE/SvjDSdUodXI/AAAAAAAABJw/E0_ZhIHUOy4/s1600-h/attdef[2].jpghttp://cad-notes.com/wp-content/uploads/2009/11/label-tag.jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDSdUodXI/AAAAAAAABJw/E0_ZhIHUOy4/s1600-h/attdef[2].jpghttp://cad-notes.com/wp-content/uploads/2009/11/label-tag.jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDSdUodXI/AAAAAAAABJw/E0_ZhIHUOy4/s1600-h/attdef[2].jpghttp://cad-notes.com/wp-content/uploads/2009/11/label-tag.jpghttps://plus.google.com/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://www.linkedin.com/cws/share?url=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/https://twitter.com/share?original_referer=http%3A%2F%2Fwww.cad-notes.com%2F&source=tweetbutton&text=How+to%3A+Label+Coordinate+in+AutoCAD&url=http%3A%2F%2Fwww.cad-notes.com%2F2009%2F11%2Fhow-to-label-coordinate-in-autocad%2F&via=CADnoteshttp://www.facebook.com/sharer.php?u=http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/http://www.cad-notes.com/2009/11/how-to-label-coordinate-in-autocad/#disqus_threadhttp://www.cad-notes.com/author/edwinp/7/27/2019 How to - Label Coordinate in AutoCAD
2/4
Change the field category to objects, and in field names, select object. Click select object button to
define the object type. Select the circle, dont 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 dont need it to display Z value. I turn it off. Change the format if
necessary.Click OK.
Click OK again to close the define attribute dialog box. Place your attribute definition in desired
location.
Optional: Define Adjustable Leader
If you dont want to have leader in your coordinate label, you can skip this step.
I add a line that will be used as leader.
Create the Block
Now we can define the block. Click create from ribbon, block panel.
http://lh6.ggpht.com/_Uq907Hmj7AE/SvjDYnknaUI/AAAAAAAABKI/ill8VT2Eefo/s1600-h/define%20property[4].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDWgQ0vZI/AAAAAAAABKA/vcIOwyb3-oE/s1600-h/field%20category[3].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDU1WbOaI/AAAAAAAABJ4/ea4MlUsx9EY/s1600-h/define%20attribute[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDYnknaUI/AAAAAAAABKI/ill8VT2Eefo/s1600-h/define%20property[4].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDWgQ0vZI/AAAAAAAABKA/vcIOwyb3-oE/s1600-h/field%20category[3].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDU1WbOaI/AAAAAAAABJ4/ea4MlUsx9EY/s1600-h/define%20attribute[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDYnknaUI/AAAAAAAABKI/ill8VT2Eefo/s1600-h/define%20property[4].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDWgQ0vZI/AAAAAAAABKA/vcIOwyb3-oE/s1600-h/field%20category[3].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDU1WbOaI/AAAAAAAABJ4/ea4MlUsx9EY/s1600-h/define%20attribute[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDYnknaUI/AAAAAAAABKI/ill8VT2Eefo/s1600-h/define%20property[4].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDWgQ0vZI/AAAAAAAABKA/vcIOwyb3-oE/s1600-h/field%20category[3].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDU1WbOaI/AAAAAAAABJ4/ea4MlUsx9EY/s1600-h/define%20attribute[2].jpg7/27/2019 How to - Label Coordinate in AutoCAD
3/4
Select all the objects, and define the center as insertion point. Activate Open in Block Editor on
lower left of this dialog. We are going to add some dynamic functionality. Click OK.
AutoCAD will show the edit attribute dialog. We dont 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 we can modify the text (and optionally leader)
placement. In block authoring palette, activate the point parameter.
Now place it where you want the grip appear.
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.
Now we are done! Save this block and close block editor.
Using the Label
How we can use the label? Just insert the block, and click on the point you want to show the
coordinate. After you have one of the block 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!
http://lh3.ggpht.com/_Uq907Hmj7AE/SvjDgpvsjFI/AAAAAAAABKs/LZd4hb44Vb4/s1600-h/cross%20polygon[2].jpghttp://lh4.ggpht.com/_Uq907Hmj7AE/SvjDeLSTNaI/AAAAAAAABKk/sCn3S56uPic/s1600-h/point%20parameter%20placement[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDcn_kz9I/AAAAAAAABKc/zb_FSPy10DY/s1600-h/point%20parameter[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDbFolWPI/AAAAAAAABKU/6HrjF_PzxZw/s1600-h/create%20block[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDgpvsjFI/AAAAAAAABKs/LZd4hb44Vb4/s1600-h/cross%20polygon[2].jpghttp://lh4.ggpht.com/_Uq907Hmj7AE/SvjDeLSTNaI/AAAAAAAABKk/sCn3S56uPic/s1600-h/point%20parameter%20placement[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDcn_kz9I/AAAAAAAABKc/zb_FSPy10DY/s1600-h/point%20parameter[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDbFolWPI/AAAAAAAABKU/6HrjF_PzxZw/s1600-h/create%20block[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDgpvsjFI/AAAAAAAABKs/LZd4hb44Vb4/s1600-h/cross%20polygon[2].jpghttp://lh4.ggpht.com/_Uq907Hmj7AE/SvjDeLSTNaI/AAAAAAAABKk/sCn3S56uPic/s1600-h/point%20parameter%20placement[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDcn_kz9I/AAAAAAAABKc/zb_FSPy10DY/s1600-h/point%20parameter[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDbFolWPI/AAAAAAAABKU/6HrjF_PzxZw/s1600-h/create%20block[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDgpvsjFI/AAAAAAAABKs/LZd4hb44Vb4/s1600-h/cross%20polygon[2].jpghttp://lh4.ggpht.com/_Uq907Hmj7AE/SvjDeLSTNaI/AAAAAAAABKk/sCn3S56uPic/s1600-h/point%20parameter%20placement[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDcn_kz9I/AAAAAAAABKc/zb_FSPy10DY/s1600-h/point%20parameter[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDbFolWPI/AAAAAAAABKU/6HrjF_PzxZw/s1600-h/create%20block[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDgpvsjFI/AAAAAAAABKs/LZd4hb44Vb4/s1600-h/cross%20polygon[2].jpghttp://lh4.ggpht.com/_Uq907Hmj7AE/SvjDeLSTNaI/AAAAAAAABKk/sCn3S56uPic/s1600-h/point%20parameter%20placement[2].jpghttp://lh3.ggpht.com/_Uq907Hmj7AE/SvjDcn_kz9I/AAAAAAAABKc/zb_FSPy10DY/s1600-h/point%20parameter[2].jpghttp://lh6.ggpht.com/_Uq907Hmj7AE/SvjDbFolWPI/AAAAAAAABKU/6HrjF_PzxZw/s1600-h/create%20block[2].jpg7/27/2019 How to - Label Coordinate in AutoCAD
4/4
Because we use field, if you move your points, the value will be automatically updated! Very cool, isnt
it?
Why Attribute Definition? Why not Just Use Text?
You might ask this: why not just use text with field? I know we can insert field within text, single or
multiline. But it doesnt 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 dont create a block from them, but I believe you want to use it as reusable content, arent you?