The Buzzard Posted May 30, 2009 Posted May 30, 2009 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 Quote
wizman Posted May 30, 2009 Posted May 30, 2009 Maybe its the InitCommandVersion: http://blog.jtbworld.com/2009/03/initcommandversion-and-r-control.html Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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 Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 For your own curiosity the link below is the program in question. http://www.cadtutor.net/forum/showthread.php?t=34891 Try to run the program and see what you think. Quote
wizman Posted May 30, 2009 Posted May 30, 2009 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. Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
Lee Mac Posted May 30, 2009 Posted May 30, 2009 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 Quote
wizman Posted May 30, 2009 Posted May 30, 2009 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. Quote
flowerrobot Posted May 30, 2009 Posted May 30, 2009 Ahhh if you remmember buzzard this was the error i menchioned to you, Sorry i never managed to work it out tho. Quote
wizman Posted May 30, 2009 Posted May 30, 2009 Please try the attached file, dont have 2004 here so not sure how its working correctly. IDS_V1.02-test.zip Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
Lee Mac Posted May 30, 2009 Posted May 30, 2009 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 Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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? Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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? Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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. Quote
The Buzzard Posted May 30, 2009 Author Posted May 30, 2009 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 Quote
wizman Posted May 31, 2009 Posted May 31, 2009 buzzard, those were the only changes i did, i commented out the subclass markers, glad its fine now.... Quote
Recommended Posts
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.