AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Contributor
kevinsbane
Posts: 19
Registered: ‎11-23-2011
Message 21 of 47 (483 Views)

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.

*Expert Elite*
Jeff_M
Posts: 4,449
Registered: ‎07-22-2003
Message 22 of 47 (479 Views)

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
Contributor
kevinsbane
Posts: 19
Registered: ‎11-23-2011
Message 23 of 47 (461 Views)

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)

*Expert Elite*
Jeff_M
Posts: 4,449
Registered: ‎07-22-2003
Message 24 of 47 (453 Views)

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
Contributor
kevinsbane
Posts: 19
Registered: ‎11-23-2011
Message 25 of 47 (418 Views)

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.

Valued Mentor
gjrcmb
Posts: 326
Registered: ‎06-21-2011
Message 26 of 47 (327 Views)

Re: Renumbering Points

05-29-2013 09:24 PM in reply to: kevinsbane

Hi folks,

 

I revised the reorderpoint.lsp program to work with C3D 2014 as well as 2010-2013, which appears to be a slightly different version than the one last posted by Jeff, so I can't tell you what the exact difference is.  Also fixed a shortcoming and a bug.  As always please test it out to make sure it is doing what you would expect and use at your own risk.

 

Gavin

New Member
kpadgett606
Posts: 1
Registered: ‎11-15-2013
Message 27 of 47 (243 Views)

Re: Renumbering Points

11-15-2013 11:27 AM in reply to: gjrcmb

Thanks so much to you all! This worked perfectly, version 2013.  You guys rock!

Active Contributor
hmartinez5
Posts: 49
Registered: ‎06-24-2011
Message 28 of 47 (104 Views)

Re: Renumbering Points

09-02-2014 10:26 AM in reply to: kpadgett606

Anybody has a LSP to do this in 2015?

Valued Mentor
gjrcmb
Posts: 326
Registered: ‎06-21-2011
Message 29 of 47 (88 Views)

Re: Renumbering Points

09-02-2014 01:28 PM in reply to: hmartinez5

Hi hmartinez5,

 

Unforetunately, I don't have access to C3D 2015 to test out a modification for C3D 2015.  The lsp file needs to be updated to take into account the software version numbers for 2015.  Similar to what Jeff had described a few posts before, you can modify the lsp file to include the 2015 version numbers.  I have shown the subject portion of the file below that shows the new code to add in orange.  Hopefully this will get things working for you, but I am unable to verify on my end.  Please test it out and confirm that works.

 

 

    (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
             ((vl-string-search "\\R19.1\\" prod)
              "10.3"
             )
             ;;2014
             ((vl-string-search "\\R20.0\\" prod)
              "10.4"
             )
             ;;2015
        )
    )

 

 

 

Active Contributor
hmartinez5
Posts: 49
Registered: ‎06-24-2011
Message 30 of 47 (78 Views)

Re: Renumbering Points

09-02-2014 01:54 PM in reply to: gjrcmb

Thanks for the information. It looks like it loaded correctly but I can't run the command, I get the following error.

 

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

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.