Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

issues with a lisp routine when upgraded to Acad 2014 fro Acad 2012

13 REPLIES 13
SOLVED
Reply
Message 1 of 14
austinryan
1676 Views, 13 Replies

issues with a lisp routine when upgraded to Acad 2014 fro Acad 2012

I am having an issue with an old lisp routine in Acad 2014. I did not write the code but I am trying to get it to work in the new format. The lisp routing calls out a odcl file and it is having issues. There error I get is the following and it stoppes at arxload mstOpenDCLFile.

 

 

(arxload mstOpenDCLFile) ; no need to check every time, if it's already loaded arxload does nothing
(dcl_Project_Load mstDialogFile nil)
(if (not (menugroup "MST"))
  (mstSetupMenu)
)
(if (not (= "F" (getcfg "AppData/msTools/Enabled"))) ; changed so that it will open on first run
  (c:mstools)
)
(prompt "\nmsTools loaded.")

 

Once again this works fine in Acad 2012 I posted the lisp and the odcl file  any help would be greatly appreciated

 

P.S. I think it is tripping up on the odcl because in acad i get this

 

error: no function definition: DCL-FORM-SHOW

 

13 REPLIES 13
Message 2 of 14
owenwengerd
in reply to: austinryan

It looks like you have not installed a version of OpenDCL Runtime that supports AutoCAD 2014, and it also looks like the lisp code does not use the standard (command "OPENDCL") function to load the runtime. Do you own copyright to the files you posted? If not, your post could be infringing copyright.

--
Owen Wengerd
ManuSoft
Message 3 of 14
austinryan
in reply to: owenwengerd

I work for ms consultants and in the lisp you will see it is the property of ms consultants. it isnt anything great so that is why I posted. I just want it to work. what do you mean you have not installed a version of OpenDCL Runtime that supports AutoCAD 2014. can you guide me in the correct location

Message 4 of 14
austinryan
in reply to: austinryan

ok i loaded the latest open DCL and it is still having issues

Message 5 of 14
paullimapa
in reply to: austinryan

ms consultants will need to purchase the latest arx file called mstOpenDCLFile.arx The mstOpenDCLFile.arx being used now is compiled for Acad 2012.  You'll need one compiled for Acad 2014 if available.  As Owen owenwengerd posted, that may be a 3rd party app and ms consultants may need to purchase an upgrade.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 6 of 14
owenwengerd
in reply to: austinryan

Does OpenDCL Runtime load if you enter the OPENDCL command at the AutoCAD command line? If so, you just need to change your lisp file to load the runtime, e.g. by using (command "_OPENDCL"). In any case, you'll need to provide more information than "still having issues" if you want help getting it resolved.

--
Owen Wengerd
ManuSoft
Message 7 of 14
austinryan
in reply to: owenwengerd

sorry about that trying to do to many things at one. When I type opendcl in acad it loads sucsesful (it doesnt autoload)

 

Command: OPENDCL
OpenDCL Runtime [8.0.0.4] loaded

 

 

it is wierd some of the commands from the lisp work in 2014 and others dont. (work only if you type in the short cuts) I have highlighted the ones that work using acad 2012 to show the mstools dialog box that should be displayed. For some reason Acad 2014 will not pull up that box.

Message 8 of 14
austinryan
in reply to: austinryan

the ones that dont work while typing the lisp commad get this error

 

Command: LZ
2371 lines parsed.
LayZer: Finished parsing in 0.2 seconds.
; error: no function definition: dcl-form-show
Command:

 

Command: DLB
; error: no function definition: dcl-form-show
Command:

 

adr gives me a partial load

 

Command: ADR
_.revcloud
Minimum arc length: 1/2"   Maximum arc length: 1/2"   Style: Normal
Specify start point or [Arc length/Object/Style] <Object>: _a
Specify minimum length of arc <1/2">: 0.250000000000000
Specify maximum length of arc <1/4">: 0.250000000000000
Specify start point or [Arc length/Object/Style] <Object>: _s
Select arc style [Normal/Calligraphy] <Normal>:Normal Normal

 

but why si the graphic dialog box not showing up. that is what puzzles me

 

Anyway thanks once again for your time I really appreciate it

Message 9 of 14
owenwengerd
in reply to: austinryan

The errors indicate that OpenDCL Runtime is not loaded. You have said that it loaded correctly when you entered the command manually, so it sounds like you did not correct your lisp file to load the runtime. Do your commands work if you first load OpenDCL Runtime manually? Did you understand my previous point about replacing the (arxload) function with (command "_OPENDCL")?

--
Owen Wengerd
ManuSoft
Message 10 of 14
austinryan
in reply to: owenwengerd

Do your commands work if you first load OpenDCL Runtime manually? 

 

No it gives me the error

 

msTools 2014.lsp successfully loaded.
Command: ; error: ARXLOAD failed
Command:

 

then when i type mstools I get this error An OpenDCL Function argument processing exception has occured

 

Error.NIL value not allowed

Function: dcl-Form-Show

Argument 0

 

 

 

Did you understand my previous point about replacing the (arxload) function with (command "_OPENDCL")?

 

Sorry but I do not understand  

wherever it says arxload  you want me to replace it with opendcl instead in the lisp routine?

 

Message 11 of 14
owenwengerd
in reply to: austinryan


@austinryan wrote:

wherever it says arxload  you want me to replace it with opendcl instead in the lisp routine?

 


If you're not able to update the code on your own, you can try to just replace the (arxload) line with (command "_OPENDCL"). This will leave some harmless junk code in your file, but it will get you past this problem and on to the next one.

--
Owen Wengerd
ManuSoft
Message 12 of 14
austinryan
in reply to: owenwengerd

WOW Thank you so much after reading through all the posts I focused lol and redid a bunch of things and it finally worked OK here is the process to get it to work

 

1. Need to open and install the latest openDCL (the old one pointed to one that would not work with acad2014) I am using version 8.0.0.4

2. edit the lisp (replace the (arxload) line with (command "_OPENDCL"). Thanks to OWEN

3. add the lisp into the trusted paths directory on acad

4. put the autoload lisp in my acad startup suite

 

and then it worked. one of the buttons do not work (it is a drag and drop cad detail library that we dont use much) but atleast I have the dialog box up and running. Thanks to everyone for the help and Owen if you want the code from the lisp I posted it is all yours thanks again

 

You are awsome!!!!!Smiley Very Happy

Message 13 of 14
owenwengerd
in reply to: austinryan

I'm glad to hear that you got it working. 🙂

--
Owen Wengerd
ManuSoft
Message 14 of 14
jrampello
in reply to: owenwengerd

Well I now have inherited this task moving into Acad 2017.  We are back to similar issues before where the lisp code seems to load but only a couple of the typeable shortcuts work.  I have downloaded and installed OPENDCL 8.0.5.0 for Acad 2017, but I receive the following errors when trying to the load the lisp routine.

 

"Project failed to load!'

"The file could not be found or an error occurred while reading the file."

path to our odcl project file

"[S:\std\acad\ComDev\support\msTools\acad2014\msTools.odcl]

 

This project is called early in the lisp file, does this project file need to be saved with opendcl 8.0.5.0 to change the format so it is recognized by the new opendcl?

 

The next error after clicking OK in the first error box states:

 

"An OpenDCL Function argument processing exception has occurred!'

"Error: NIL value not allowed"

"Function: dcl-form-Show"

"Argument: 0"

 

We have looked at the code as in the past but have not been able to resolve the issues.

 

I have posted the lisp file again as it exists currently, detail library fixed, and the opendcl project file, which has not been modified to a newer version.

 

We wish to able to continue to use this lisp routine as it is very convenient for some simple repeated tasks.

 

Thanks in advance for any help you may offer.

 

Jim

Jim

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost