TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rktect3j on October 12, 2006, 12:56:04 PM

Title: ddsteel.lsp from cadalyst problem
Post by: rktect3j on October 12, 2006, 12:56:04 PM
So I got this new lisp routine and I installed it with the ddsteel.dcl and also the ddsteel.doc  I appload it into acad 2002.  type in the command ddsteel and it brings up the dialog box.  I choose the piece of steel I want.  It asks me to pick a point.  I do and then it tells me.

Command: ddsteel
Enter bottom mid point:
bad argument type: FILE nil

So what do I do to fix this? 
Title: Re: ddsteel.lsp from cadalyst problem
Post by: pmvliet on October 12, 2006, 01:00:35 PM
sounds like it can't find the data file. Is this a new release from Cadalyst?
Make sure all the files that came with it are in a search path.

Pieter
Title: Re: ddsteel.lsp from cadalyst problem
Post by: CAB on October 12, 2006, 01:15:21 PM
It is not finding the data file. You could change this line
Code: [Select]
             e (open "DDsteel.doc" "r")to this:       
Code: [Select]
        fn (findfile "DDsteel.doc")
          e (open fn "r")

Note that the line appears in three locations and all must be changed.

Also note that the osnaps must be off for this routine to work.
Title: Re: ddsteel.lsp from cadalyst problem
Post by: rktect3j on October 12, 2006, 01:22:36 PM
It is not finding the data file. You could change this line
Code: [Select]
             e (open "DDsteel.doc" "r")to this:       
Code: [Select]
        fn (findfile "DDsteel.doc")
          e (open fn "r")

Note that the line appears in three locations and all must be changed.

Also note that the osnaps must be off for this routine to work.

Thanks CAB.  That fixed it.  I had already turned off my osnaps so it must have been that code you posted.  Don't know why the original portion of code inside the lips didn't work though.
Title: Re: ddsteel.lsp from cadalyst problem
Post by: CAB on October 12, 2006, 01:30:16 PM
The osnaps & the file  issue are two separate things.
When it does find the data file it will not draw the shape properly if osnaps are on and you are near something it could snap to.