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.
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.
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.
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)
((vl-string-search "\\R18.1\\" prod)
((vl-string-search "\\R18.2\\" prod)
((vl-string-search "\\R19.0\\" prod)
((vl-string-search "\\R19.1\\" prod)
((vl-string-search "\\R20.0\\" prod)
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)
Access a broad range of knowledge to help get the most out of your products and services.