+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Posts
    30

    Default add vertex z or elevation to points

    Registered forum members do not see this ad.

    Hello to all!

    First time poster long time reader. Cadtutor helped me a lot to understand better autocad.

    Can anyone help me with this?

    I have a layer that has 3dpoints with vertex z being the height of the points.
    What i would like to do is insert a text with the height on top of the point. But here is the trick. The heights are either 2 numbers-comma-number (e.g. 23,3) or one number-comma-number (e.g. 3,4). I want the comma of the text to be placed exactly on top of the point. (something like snapping?)

    I also could have the heights on a different layer and want the commas snapped on the points. I can't move them from their first position to the point using the comma to snap because one number might have a bigger offset from the point than the other.

    Thank you in advance, i know that someone will find the perfect solution!

  2. #2
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    I don't think that you will find the perfect solution for that one with text. You may be able to do it using a block with 2 attributes and the coma being made from geometry at the base insert point of the block. -David
    Last edited by David Bethel; 4th Aug 2007 at 01:05 pm.
    R12 (Dos) - A2K

  3. #3
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Posts
    30

    Default

    Hmm i see....i was thinking maybe a lisp that will snap the second (4,2) character or the third (34,2) -the commas that is- onto the point.

  4. #4
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    1 thing that you can do is snap to text _ins point. It is basically the calculated justification point ( dxf group 10) of the text ( not mtext ) so if you use middle_bottom to create the text you would probably be close but not exact. -David
    R12 (Dos) - A2K

  5. #5
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,970

    Default

    I think the text justification you need is CENTRE.

    The insertion point of the number (2,3) is very close to the comma, but with the number (32,4) you must add a space after the 4, and then the insertion point is again the comma.

    I can't get used to the decimal seperator being a comma. What happens with a CSV file full of coordinates? Call me old-fashioned, but I will always use a decimal point.

  6. #6
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Posts
    30

    Default

    The problem with the insertion point being the centre is that for example 1,8 has a different centre than 8,1 just because 8 is wider than 1.

    David i couldn't understand what you mean by "snap to text _ins point". Can you explain it a bit please?

  7. #7
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    You can beat the variable width issue by using a monospace font.

    This screen shot is of the move command using the _ins ( insert node ) osnap of the text created with bottom center justification. -David
    Attached Images
    R12 (Dos) - A2K

  8. #8
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,970

    Default

    And you get different insertion points with True Type and AutoCAD shx fonts.

    Perhaps there is a decimal justification

  9. #9
    Full Member
    Using
    AutoCAD 2008
    Join Date
    Aug 2007
    Posts
    30

    Default

    Registered forum members do not see this ad.

    Thank you both! Found a solution that will work i hope. I will make 2 layers. One with number,decimal,number and one with 2 numbers before the decimal. I will use a monospace font like courier and then simply move them on top of the points. Then will convert the justification of the labels to centre and change the width of the label a bit to make them sorter so it will "shrink" along the centre of the label. Many many thanks again.

Similar Threads

  1. 2-d Elevation sections from a 3-D MODEL
    By muck in forum AutoCAD 3D Modelling & Rendering
    Replies: 9
    Last Post: 30th Apr 2007, 04:02 pm
  2. 3D to 2d elevation?
    By nivradolobo in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 6th Mar 2007, 05:25 pm
  3. reading from vertex files
    By gib65 in forum AutoCAD 3D Modelling & Rendering
    Replies: 5
    Last Post: 1st Feb 2007, 06:35 am
  4. Viewing 3DSolid vertex
    By LeoRoncetti in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 2nd May 2006, 01:14 am
  5. How to bring all point to a same elevation?
    By Jose in forum AutoCAD General
    Replies: 3
    Last Post: 5th May 2005, 05:50 pm

Bookmarks

Posting Permissions

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