TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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?
-
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
-
It is not finding the data file. You could change this line
e (open "DDsteel.doc" "r")
to this:
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.
-
It is not finding the data file. You could change this line
e (open "DDsteel.doc" "r")
to this:
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.
-
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.