View Full Version : Auto Labeling Lisp
Thanatos1987
2018-01-25, 09:46 PM
I have imported electrical grids into Map3D via a shapefile. Each grid is populated with a circuit name (ckt_name). I was wondering if there is a lisp routine that will pull that particular attribute and produce a label along the border of the circuit (closed polyline). If I could choose the font and text height it would be a plus.
My ultimate goal is to have a clean label for both circuits along the borders so when zoomed in you can tell which circuit is which. I have attached a cad file with 4 circuits.
devitg.89838
2018-01-27, 11:42 PM
I have imported electrical grids into Map3D via a shapefile. Each grid is populated with a circuit name (ckt_name). I was wondering if there is a lisp routine that will pull that particular attribute and produce a label along the border of the circuit (closed polyline). If I could choose the font and text height it would be a plus.
My ultimate goal is to have a clean label for both circuits along the borders so when zoomed in you can tell which circuit is which. I have attached a cad file with 4 circuits.
Maybe I'm wrong , but I do not see any grid , name , only 4 polylines
106081
Please clear it , and draw a sample text to be used as example.
- - - Updated - - -
What I see
106082
- - - Updated - - -
what I can see
106083
Thanatos1987
2018-01-27, 11:45 PM
In essence, the polylines are what we consider our grids. The polylines have attributes attached to it including ckt_name. I was hoping to have a lisp that would pull the name from that attribute from each grid (polylines) and label it around the border of each polylines.
Maybe I'm wrong , but I do not see any grid , name , only 4 polylines
106081
Please clear it , and draw a sample text to be used as example.
- - - Updated - - -
What I see
106082
- - - Updated - - -
what I can see
106083
peter
2018-01-28, 01:27 AM
Could you go to options and change the saveas format to a lower version.
I had trouble opening your file.
P=
BIG-AL
2018-01-28, 02:57 AM
The labelling around the border is the easy part, as you have imported a GIS Shape file you need to have Map or CIV3d to extract the data from each pline. This link should help.
https://forums.autodesk.com/t5/autocad-map-3d-developer/extracting-object-data-through-lisp/td-p/985106
Need a bit more info about how often the lable is to appear
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.