Results 1 to 5 of 5

Thread: Auto Labeling Lisp

  1. #1
    Member
    Join Date
    2018-01
    Posts
    2
    Login to Give a bone
    0

    Default Auto Labeling Lisp

    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.
    Attached Files Attached Files

  2. #2
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: Auto Labeling Lisp

    Quote Originally Posted by Thanatos1987 View Post
    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


    ckt boundaries.dwg


    Please clear it , and draw a sample text to be used as example.

    - - - Updated - - -

    What I see



    four polys.PNG

    - - - Updated - - -

    what I can see



    four polys.PNG

  3. #3
    Member
    Join Date
    2018-01
    Posts
    2
    Login to Give a bone
    0

    Default Re: Auto Labeling Lisp

    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.


    Quote Originally Posted by devitg.89838 View Post
    Maybe I'm wrong , but I do not see any grid , name , only 4 polylines


    ckt boundaries.dwg


    Please clear it , and draw a sample text to be used as example.

    - - - Updated - - -

    What I see



    four polys.PNG

    - - - Updated - - -

    what I can see



    four polys.PNG

  4. #4
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: Auto Labeling Lisp

    Could you go to options and change the saveas format to a lower version.

    I had trouble opening your file.

    P=
    AutomateCAD

  5. #5
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    561
    Login to Give a bone
    0

    Default Re: Auto Labeling Lisp

    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/autoc...sp/td-p/985106

    Need a bit more info about how often the lable is to appear

Similar Threads

  1. AUTO LISP
    By M.Jamal Khan in forum AutoLISP
    Replies: 3
    Last Post: 2020-04-30, 08:47 PM
  2. Contour Labeling Lisp
    By johnshar123xx in forum AutoLISP
    Replies: 11
    Last Post: 2017-03-03, 01:47 AM
  3. Auto Lisp
    By MarkLyon in forum CAD Management - General
    Replies: 5
    Last Post: 2011-02-16, 03:46 PM
  4. Lisp routine for Labeling Northing and Easting
    By mserapiglia in forum AutoLISP
    Replies: 1
    Last Post: 2008-05-21, 10:01 PM
  5. NEW AUTO LISP
    By rstiles in forum AutoLISP
    Replies: 5
    Last Post: 2005-11-30, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •