(command "_LEADER" p textloc "" ptcoord "")Īnd if you want to simply download and use it, download this file. Will use current leader style and current units setting If you are following AutoLISP tutorial in CAD Notes, be patience! We will get there. So you don’t need to reactivate it after you have labeled one point. I decide to make it this way because mostly we want to create several labels at once.
I wrote the code to run when I type LB then.
There are several ways to load AutoLISP program, but this is the easiest way. You can download the file in link you’ll find below this post. But what if you want to label the coordinate from UCS?īecause I’m currently learning AutoLISP, then I decided to take it as a challenge to create a program to do that. It makes sense, because if we want to label our coordinate, then usually we do use global coordinate. If you move the UCS, it will still use global coordinate. It will only recognize the point position from global coordinate. It is nice that you can create your own block, create your own block shapes, and customize it to look anything you want to.īut there is a limitation. I have posted an AutoCAD tip how you can create your own label coordinate in AutoCAD using block attributes.