Author Topic: ddsteel.lsp from cadalyst problem  (Read 1965 times)

0 Members and 1 Guest are viewing this topic.

rktect3j

  • Guest
ddsteel.lsp from cadalyst problem
« 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? 

pmvliet

  • Guest
Re: ddsteel.lsp from cadalyst problem
« Reply #1 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

CAB

  • Global Moderator
  • Seagull
  • Posts: 10365
Re: ddsteel.lsp from cadalyst problem
« Reply #2 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.
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

rktect3j

  • Guest
Re: ddsteel.lsp from cadalyst problem
« Reply #3 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.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10365
Re: ddsteel.lsp from cadalyst problem
« Reply #4 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.
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.