See the top rated post in this thread. Click here

Results 1 to 8 of 8

Thread: Coordinate labels

  1. #1
    Member
    Join Date
    2003-12
    Posts
    9
    Login to Give a bone
    0

    Unhappy Coordinate labels

    I have a problem regarding our road cross section drawings. Everytime we plot a cross section, we will have to label each point using the ID command and then copying the exact coordinates (elevation and distance from the road centerline). this would be very time consuming and confusing. does anyone had a LISP routine that automatically label a point in a drawing with the current UCS as basis of the coordinate?

  2. #2
    Member Virago87's Avatar
    Join Date
    2005-02
    Location
    Toronto, Canada
    Posts
    29
    Login to Give a bone
    1

    Default Re: Coordinate labels

    got this from cadalyst years ago....may get you closer to what your looking for...

    good luck
    Attached Files Attached Files

  3. #3
    Member
    Join Date
    2003-12
    Posts
    9
    Login to Give a bone
    0

    Thumbs up Re: Coordinate labels

    thompson21

    thanks for the file that you sent. i still have one problem though. I have a japanese employer who always asks the length of the arc of the pier on its plan view. Usually, i used lines instead of polylines so i can get the exact arc length. is there a way to make a dimension for arc length?

    i hope you can help me again with this matter.

    thanks a lot

  4. #4
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    1

    Default Re: Coordinate labels

    Quote Originally Posted by neilo
    is there a way to make a dimension for arc length?
    check the code in "circumferebtial dimension" earlier in this forum

    : ) Happy Computing !

  5. #5
    Member
    Join Date
    2003-12
    Posts
    9
    Login to Give a bone
    0

    Unhappy Re: Coordinate labels

    sir, i had tried the circumferential dimensioning but it only applies to circle and not for the arcs. can you please tell me how to convert that LISP for arcs length?


    truly,

    Nhel

  6. #6
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,657
    Login to Give a bone
    1

    Default Re: Coordinate labels

    Hi

    Have a browse of the following thread -

    Dimension an Arc

    Have a good one, Mike

  7. #7
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Coordinate labels

    Ok try this :
    Code:
    (defun c:ArcDim ( / Ent EntDxf ArcLen AngRad Radie AngGo AngEnd )
      (if (setq Ent (entsel ) )
        (progn
          (setq EntDxf (entget (car Ent )) )
          (if (= "ARC" (cdr (assoc '0 EntDxf )) )
            (progn
              (setq Radie  (cdr (assoc '40 EntDxf )) )
              (setq AngGo  (cdr (assoc '50 EntDxf )) )
              (setq AngEnd (cdr (assoc '51 EntDxf )) )
              (if (< AngGo AngEnd )
                (setq AngRad (- AngEnd AngGo ) )
                (setq AngRad (+ (* 2 pi ) (- AngEnd AngGo )) )
              )
              (setq ArcLen (* Radie AngRad ) )
              (setq ArcLen (rtos ArcLen (getvar "LUNITS") (getvar "DIMDEC") ))
              (command "_dim" "angular" Ent "Text" ArcLen pause "" "exit" )
            )
            (princ "Object is not an arc !" )
          )
        )
        (princ "Miss, aim better !" )
      )
      (princ)
    )
    : ) Happy Computing !

    kennet

  8. #8
    Member
    Join Date
    2003-12
    Posts
    9
    Login to Give a bone
    0

    Thumbs up Re: Coordinate labels

    thank you very much guys!

    you are indeed of great help.....

Similar Threads

  1. 2014: Civil 3D Coordinate
    By wiegmanroger433258 in forum AutoCAD Civil 3D - General
    Replies: 10
    Last Post: 2014-05-05, 01:43 PM
  2. 2013: 3D Cartesian Coordinate System: Batch input with Work Point Labels
    By rusa67 in forum Inventor - General
    Replies: 0
    Last Post: 2013-02-04, 04:44 PM
  3. Add certain value to coordinate
    By matti.239210 in forum AutoLISP
    Replies: 10
    Last Post: 2011-12-29, 06:02 AM
  4. Z Coordinate
    By craigs48.191064 in forum AutoCAD General
    Replies: 13
    Last Post: 2008-11-28, 05:57 PM
  5. Put X,,Y & Z Labels on the Coordinate Axis Indicator
    By inventor.wishlist1738 in forum Inventor Wish List
    Replies: 1
    Last Post: 2006-05-12, 01:39 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
  •