Results 1 to 8 of 8

Thread: I need help finding the string to access c3d point data for a lisp routin

  1. #1
    100 Club
    Join Date
    2008-06
    Location
    The Yay! (Bay Area, CA)
    Posts
    131
    Login to Give a bone
    0

    Default I need help finding the string to access c3d point data for a lisp routin

    Basically what we've always used in our office with ldt is a lisp routin that reads the points in an autocad drawing and changes the description and drops down the correct symbol for that point. So It would have a bunch or points in the drawing and the point would have its point number, elevation and a description which was for example "352.3". So the 352 would be for example "TC" the .3 would be "BC" so then it would change the description of the point to "TC BC" at the same time it would do this for all points and if a point was a Fire hydrant it would move the point to the hydrant layer and drop down a hydrant symbol on top of the node.

    Now that we are moving to civil 3d we can't find the string to get access to the point. If that makes sense. Can anyone help me out with this.

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    This functionality is built in to Civil 3D. It changed and got much better in C3D 2010, so hopefully you are using either 2010 or 2011.

    In any case, check into the automated linework functionality. It takes a fair bit of setup, but then works pretty well once you get through that.

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    Are you just trying to access the DESC part of a C3D point?
    If so, try this:

    Code:
    
    
    ; standard entity selection
    (setq sel (entsel "\nSelect Point: "))
    ; get the entity name
    (setq ent (car sel))
    ; get the entity list
    (setq lst (entget ent))
    ; check to make sure the selection was the expected type
    (if (eq "AECC_COGO_POINT" (cdr (assoc 0 lst)))
      ; if so, convert the entity into a VLA-OBJECT
      (setq obj (vlax-ename->vla-object ent))
    )
    (if obj
      ; get the description of the point
      (setq nam (vlax-get-property obj 'Description))
    )
        
    
    R.K. McSwain | CAD Panacea |

  4. #4
    100 Club
    Join Date
    2008-06
    Location
    The Yay! (Bay Area, CA)
    Posts
    131
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    Quote Originally Posted by sinc View Post
    This functionality is built in to Civil 3D. It changed and got much better in C3D 2010, so hopefully you are using either 2010 or 2011.

    In any case, check into the automated linework functionality. It takes a fair bit of setup, but then works pretty well once you get through that.
    no this doesn't meet our needs but thank you!

  5. #5
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    Quote Originally Posted by jmeyer.186809 View Post
    no this doesn't meet our needs but thank you!
    What about it doesn't meet your needs?

  6. #6
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Exclamation Re: I need help finding the string to access c3d point data for a lisp routin

    Quote Originally Posted by jmeyer.186809 View Post
    no this doesn't meet our needs but thank you!
    Well, was the lisp code above of any help?
    R.K. McSwain | CAD Panacea |

  7. #7
    100 Club
    Join Date
    2008-06
    Location
    The Yay! (Bay Area, CA)
    Posts
    131
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    Quote Originally Posted by rkmcswain View Post
    Well, was the lisp code above of any help?
    Yes thank you much! It got me started.

  8. #8
    100 Club
    Join Date
    2008-06
    Location
    The Yay! (Bay Area, CA)
    Posts
    131
    Login to Give a bone
    0

    Default Re: I need help finding the string to access c3d point data for a lisp routin

    Quote Originally Posted by sinc View Post
    What about it doesn't meet your needs?
    It doesn't work with the way our office collects and compiles data.

Similar Threads

  1. Replies: 4
    Last Post: 2009-12-18, 01:06 PM
  2. Finding a point on a line to start from
    By jgratton in forum AutoCAD 3D (2007 and above)
    Replies: 8
    Last Post: 2008-09-23, 02:54 PM
  3. Finding the Center Point of a Polyline ?
    By stephen.coff in forum AutoLISP
    Replies: 2
    Last Post: 2007-07-16, 11:58 PM
  4. Select a point vs. String input
    By garberadam in forum AutoLISP
    Replies: 8
    Last Post: 2006-10-13, 06:49 PM
  5. How to Create Access table data to AutoCAD VBa Combo box data
    By avinash00002002 in forum VBA/COM Interop
    Replies: 2
    Last Post: 2006-06-20, 08:22 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
  •