Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 It should highlight the line at which the program breaks - are you loading it from the VLIDE also? Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 Sorry not used VLIDE. What im doing: Open up drawing with block, vlide - set to break on error autocad - run macatt hit X Choose block, choose directory Vlide reports error Vlide - ctrl+F9 - above error. Sorry for my ignorance Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 Not a problem Monk, only, it is quite difficult for me to locate the error, as I cannot reproduce it - I'm thinking it might be the Excel part, but I am also using 2007 and have no problems. Try this: -- Open VLIDE -- File > New File (Ctrl+N) -- Copy Code into new file window -- Debug > Break on Error (ticked) -- Load Code: Tools > Load Text in Editor (Ctrl+Alt+E) -- In AutoCAD: MacAtt at Command Line > Enter (or X) -- Choose Block, Choose Directory -- Back to VLIDE: Debug > Last Break Source (Ctrl+F9) -- Line causing error should be highlighted Hopefully this helps! Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 All i get is _1$ appear... Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 All i get is _1$ appear... Yes, this appears when it errors, then you should be able to go to last break source and it should be highlighted in the editor window. Make sure you reset after error also, by Debug > Reset to Top Level. Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 I SEE! I feel like a noob now (vla-GetInterfaceObject *acad (if (< (setq acVer (atoi (getvar "ACADVER"))) 16) "ObjectDBX.AxDbDocument" (strcat "ObjectDBX.AxDbDocument." (itoa acVer)) ) ) Thats whats highlighted I presume this needs to be changed to suit 2011? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 Ah! the ObjectDBX part... Curious, what does this return at the command line for you: (atoi (getvar 'acadver)) Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 18 la la la la la Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 Ok, Could you try running this please also: (defun c:test ( / result ) (print (setq result (vla-getInterfaceObject (vlax-get-acad-object) "ObjectDBX.AxDbDocument.18") ) ) (vlax-release-object result) (princ) ) Hopefully it should print something like: #<VLA-OBJECT IAxDbDocument 0e437dc8> Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 I saved the above code to test.lsp loaded Command: test ; error: Automation Error. Problem in loading application Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 I thought that might happen But, now I'm stuck - is there anyone else using ACAD2011 getting this error with ObjectDBX? Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 I can reinstall my old version of cad and give it a whirl if you want me to isolate that its an 11 problem? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 I can reinstall my old version of cad and give it a whirl if you want me to isolate that its an 11 problem? I wouldn't want you to go out of your way just for my application, but I leave it up to you Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 Im just browsing through my new 2011 bible so ill get it installing while im reading Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 Im just browsing through my new 2011 bible so ill get it installing while im reading Thanks for your time investigating this Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 Works fine in 2010. So guess its a 2011 issue? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 4, 2010 Author Share Posted September 4, 2010 Works fine in 2010. So guess its a 2011 issue? I guess so - it would be interesting to see if others using 2011 also receive the error. PS> Thanks for taking the time to test it, appreciated. Quote Link to comment Share on other sites More sharing options...
monk Posted September 4, 2010 Share Posted September 4, 2010 No problemo, I appreciate the time you spend putting together the lisps! One day ill find time to learn it. Quote Link to comment Share on other sites More sharing options...
maclukas Posted September 4, 2010 Share Posted September 4, 2010 There is a very nice 'Block Attribute Global Processor v2000-2011' which you can download from 'www.cadavista.com' Mac Lukas Quote Link to comment Share on other sites More sharing options...
Astro Posted October 5, 2010 Share Posted October 5, 2010 Hi Lee, Great tool thank you it helped me a lot. One question, would it be possible when exporting to have the object handle id also in the excel? this would allow us to edit the attributes in excel and than use the "attin" command to import the informations back into the drawing Quote Link to comment Share on other sites More sharing options...
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.