• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Contributor
    kevinsbane
    Posts: 19
    Registered: ‎11-23-2011

    Re: Renumbering Points

    09-20-2012 08:04 AM in reply to: Jeff_M

    I've been using this command for a while now (thank you again to Jeff!) but now that I've upgraded to Civil 3D 2013, I'm getting an error;

     

    "; error: bad argument type: stringp nil"

     

    Any help would be appreciated.

    Please use plain text.
    *Expert Elite*
    Posts: 3,054
    Registered: ‎07-22-2003

    Re: Renumbering Points

    09-20-2012 08:45 AM in reply to: kevinsbane

    Open the lisp file using either Notepad or the VLIDE inside C3D. Find the section of code that looks similar to this, then make it look exactly like this (add a few lines so it finds C3D2013).

    (setq	verstr (cond ((vl-string-search "\\R18.0\\" prod)
    		      "7.0"
    		     )
    		     ;;2010
    		     ((vl-string-search "\\R18.1\\" prod)
    		      "8.0"
    		     )
    		     ;;2011
    		     ((vl-string-search "\\R18.2\\" prod)
    		      "9.0"
    		     )
    		     ;;2012
    		     ((vl-string-search "\\R19.0\\" prod)
    		      "10.0"
    		     )
    		     ;;2013
    	       )
      )

     Save it then reload.

    Jeff_M, also a frequent Swamper
    Please use plain text.
    Contributor
    kevinsbane
    Posts: 19
    Registered: ‎11-23-2011

    Re: Renumbering Points

    09-25-2012 11:59 AM in reply to: kevinsbane

    Jeff, I've modified the lsp as per your instructions, and am now getting the following error:

     

    ; error: "no applicable method for:" (QueryInterface nil)

    Please use plain text.
    *Expert Elite*
    Posts: 3,054
    Registered: ‎07-22-2003

    Re: Renumbering Points

    09-25-2012 01:06 PM in reply to: kevinsbane

    Kevin, which version of the lisp have you been using, the original I posted or the one modified by Gavin?

     

    Attached is Gavin's version updated to work in 2013.

    Jeff_M, also a frequent Swamper
    Please use plain text.
    Contributor
    kevinsbane
    Posts: 19
    Registered: ‎11-23-2011

    Re: Renumbering Points

    09-27-2012 03:21 PM in reply to: Jeff_M

    My thanks. I had been using yours, but this one works well.

    Please use plain text.