Code Red > AutoLISP (Vanilla / Visual)

ddsteel.lsp from cadalyst problem

(1/1)

rktect3j:
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? 

pmvliet:
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

CAB:
It is not finding the data file. You could change this line

--- Code: ---             e (open "DDsteel.doc" "r")
--- End code ---
to this:       

--- Code: ---        fn (findfile "DDsteel.doc")
          e (open fn "r")
--- End code ---

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.

rktect3j:

--- Quote from: CAB on October 12, 2006, 01:15:21 PM ---It is not finding the data file. You could change this line

--- Code: ---             e (open "DDsteel.doc" "r")
--- End code ---
to this:       

--- Code: ---        fn (findfile "DDsteel.doc")
          e (open fn "r")
--- End code ---

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.

--- End quote ---

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.

CAB:
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.

Navigation

[0] Message Index

Go to full version