I have a drawing setup lisp routine that doesn't want to work in 2016

I have a drawing setup lisp routine that doesn't want to work in 2016

Anonymous
Not applicable
953 Views
9 Replies
Message 1 of 10

I have a drawing setup lisp routine that doesn't want to work in 2016

Anonymous
Not applicable

I have put the location of the .lsp with all of the other files that it needs in the trusted file location and in the support file path and even changed the shortcut to open as administrator. The lisp routine runs but *cancels* before changing anything in the drawing. 

0 Likes
954 Views
9 Replies
Replies (9)
Message 2 of 10

hmsilva
Mentor
Mentor

@Anonymous wrote:

I have put the location of the .lsp with all of the other files that it needs in the trusted file location and in the support file path and even changed the shortcut to open as administrator. The lisp routine runs but *cancels* before changing anything in the drawing. 


Show us your code, otherwise we will have to guess...

 

Henrique

EESignature

0 Likes
Message 3 of 10

Anonymous
Not applicable

Here ya go.

0 Likes
Message 4 of 10

Anonymous
Not applicable

I'm sorry that was my .cuix file, This is my lisp with all the support files. Thanks

0 Likes
Message 5 of 10

hmsilva
Mentor
Mentor

@Anonymous wrote:

... This is my lisp with all the support files. Thanks


Command: DDMAA
; error: no function definition: FILE_IN

 

FILE_IN function?

 

Henrique

EESignature

0 Likes
Message 6 of 10

Anonymous
Not applicable

I don't know anything about code or how to write a lisp routine, these were created about 20 years ago and I've managed to get them working in every release up to this one. So I have no idea what that means lol.

0 Likes
Message 7 of 10

hmsilva
Mentor
Mentor

@Anonymous wrote:

I don't know anything about code or how to write a lisp routine, these were created about 20 years ago and I've managed to get them working in every release up to this one. So I have no idea what that means lol.


You'll have to search in your older release, some file with that function defined, something starting with:

(defun FILE_IN (

probably in that file there are more functions required to run this code, or others.

 

Try at some old acad.lsp, acaddoc.lsp, or ...

 

Henrique

 

EESignature

0 Likes
Message 8 of 10

Anonymous
Not applicable

Ok I'll look around for that in those routines. Thanks for having patience with me.

0 Likes
Message 9 of 10

Anonymous
Not applicable

Is that something that can be removed or changed in this lisp routine? Or would that even be something you know w/o having the mystery file?

0 Likes
Message 10 of 10

hmsilva
Mentor
Mentor

@Anonymous wrote:

Is that something that can be removed or changed in this lisp routine? Or would that even be something you know w/o having the mystery file?


Bignick81,

in a quick read, your code calls external functions which are necessary, ex:

FILE_IN
SCALE2STR
parse_str
INPUT_SCALE2 from genlib.lsp <- the annotation is in DDMAA the lisp file...

 

Probably, exist more external functions...

You'll have to look for those files...

 

Henrique

EESignature

0 Likes