Jump to content

Recommended Posts

Posted

Has anyone had a problem with a lisp routine that will work in earlier Cad versions, But not later ones. I have a lisp that works in 2004, But not in 2009. If anyone has experienced this can you let me know if it has been resolved and what was done to resolved it.

 

Thanks,

The Buzzard

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

  • The Buzzard

    14

  • wizman

    6

  • Lee Mac

    2

  • flowerrobot

    1

Top Posters In This Topic

Posted

Thanks for information WIZ, But that did not do it.

 

I am running my IDS program in 2004 and everything is OK.

When I run the same program in 2009 I get this message below.

I am puzzled because it did work before.

 

Command: COMMANDLINE
Command: IDS
Select insertion point:
"1-42x2.25-90-L-E-O-WA.dwg": Can't find file in search path:
 C:\Documents and Settings\abozzone.maxus\My Documents\ (current directory)
 C:\Documents and Settings\abozzone.maxus\Application Data\Autodesk\AutoCAD 
2009\R17.2\enu\support\
 C:\Program Files\AutoCAD 2009\support\
 C:\Program Files\AutoCAD 2009\fonts\
 C:\Program Files\AutoCAD 2009\help\
 C:\Program Files\AutoCAD 2009\express\
 C:\Program Files\AutoCAD 2009\support\color\
 C:\TDS\Lsp\
 C:\TDS\
 C:\TEMP\
 C:\TDS\Slides\
 C:\TDS\Help\
 C:\Program Files\Adobe\Acrobat 6.0\Acrobat\
 C:\Documents and Settings\abozzone.maxus\Desktop\
 C:\CPM\
 C:\IDS\
 C:\TDS\SL\
 C:\Program Files\AutoCAD 2009\drv\
 C:\Program Files\AutoCAD 2009\
*Invalid*
; error: Function cancelled

Posted

you're only missing path in your support directory for your blocks in your acad 2009. i tried in 2008 and 2009 with a dummy block, nice looking interface.

Posted

I do not understand what you mean by that. My support directories are there, Must be something else. The blocks are created within the program. If you tested the program you would Know what I mean.

Posted
I do not understand what you mean by that. My support directories are there, Must be something else. The blocks are created within the program. If you tested the program you would Know what I mean.

 

It all works OK for me in '04 (as you predicted)...

 

Is the dialog appearing when you run it in '09? Does it get that far?

 

One thing I do notice:

You go to a lot of trouble EntMaking the block definitions in the code, but then use a command call to insert them - this may be what is causing the error - as the block only appears in the drawing, and not in the ACAD search path - so '09 will probably be performing a "findfile" search, and not finding anything by that name.

 

Why not entmake the blocks? Instead of inserting them?

 

Also, I didn't get a chance to completely break the code down, I didn't see any testing for the block's existence in the table before creating the definition, or are you just entmake'ing the definition everytime the block is selected? As this may cause the program to run slow as it has to redefine the block every time.

 

Just my $0.02

 

Lee

Posted
I do not understand what you mean by that. My support directories are there, Must be something else. The blocks are created within the program. If you tested the program you would Know what I mean.

 

 

 

ah ok, blockmaker is included in th program, try commenting out all with entmake-attdef and see if it is working, i suspect its with assoc 70 or something in the attdef.

Posted

Ahhh if you remmember buzzard this was the error i menchioned to you, Sorry i never managed to work it out tho.

Posted

My apologies to all who have responded to this thread. I am contacting you late since I was having internet problems. I will review all comments and get back to you. Once again sorry for the delay and thank you all.

Posted
My apologies to all who have responded to this thread. I am contacting you late since I was having internet problems. I will review all comments and get back to you. Once again sorry for the delay and thank you all.

 

In your own time Buzzard - no rush buddy :thumbsup:

Posted

Had to get a server problem fixed. I believe everthing is OK now.

Anyway the strange part was I got comments with regard to this problem, And yet I was not having this problem all along. Then boom it just shows up and I am like WTF.

 

WIZ the program you just posted works in both 2004 and 2009 now.

What did you do? To be honest what did I do to screw this up?

Posted
It all works OK for me in '04 (as you predicted)...

 

Is the dialog appearing when you run it in '09? Does it get that far?

 

One thing I do notice:

You go to a lot of trouble EntMaking the block definitions in the code, but then use a command call to insert them - this may be what is causing the error - as the block only appears in the drawing, and not in the ACAD search path - so '09 will probably be performing a "findfile" search, and not finding anything by that name.

 

Why not entmake the blocks? Instead of inserting them?

 

Also, I didn't get a chance to completely break the code down, I didn't see any testing for the block's existence in the table before creating the definition, or are you just entmake'ing the definition everytime the block is selected? As this may cause the program to run slow as it has to redefine the block every time.

 

Just my $0.02

 

Lee

 

 

I did it this way to overwrite the block definition so that I could change attribute styles and heights on the fly otherwiswe I thought it would not be possible to do this by using the block definition in the drawing.

Posted

Ahhh if you remmember buzzard this was the error i menchioned to you, Sorry i never managed to work it out tho.

 

Sorry about that flowerrobot but at the time I was not having a problem with 2009 and thought it was one of those rare occasions when something go wrong. It seem lately this problem started showing up more. I believe WIZ has this fixed now.

Posted
ah ok, blockmaker is included in th program, try commenting out all with entmake-attdef and see if it is working, i suspect its with assoc 70 or something in the attdef.

 

WIZ

Not sure yet what the fix was but from the above quote I do not see how this could affect one version and not the other. Hope to find out what you did so I do not repeat this same mistake.

 

By the way if I did not thank you, Please accept my Thanks on this.

Posted

Something really odd is now happening. I am not apploading the program and yet it runs from the command prompt. I am not even manually loading the program yet its there. What gives?

Posted

Ok I see now, I must have clicked Add to History. Thats my answer.

I thought the program was posessed. You know how those evil entities can be.

Posted

WIZ

 

Went thru the code you posted and found this in the attribute definitions commented out.

So theres the problem.

 

I will clean this up now and again Thank You.

 

 

      ;(cons 100 "AcDbText")                                         ;Subclass marker ~ AcDbText

 

      ;(cons 100 "AcDbAttributeDefinition")                          ;Subclass marker ~ AcDbAttributeDefinition

Posted

buzzard, those were the only changes i did, i commented out the subclass markers, glad its fine now....:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...