NBC Posted May 6, 2008 Author Share Posted May 6, 2008 Thanks Leigh, will have a play with this is the very near future; and let you know how I get on. Once again, many thanks. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 6, 2008 Share Posted May 6, 2008 V1.1 uploaded. Slight change, will remove the chance of blocks with same name being listed. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 6, 2008 Share Posted May 6, 2008 You are welcome, hope it is roughly what you were after. Isn't great, but isn't awful either...i hope. Make sure to use the most recent uploaded. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 4 downloads, any comments? Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 I just had a quick look at your work Leigh. One thing I would like to mention here is that all other lisps/vba/ autorun type thingies that load & run with every drawing MUST be either unloaded or switched off, prior to running your code. It may be easier to create a separate AutoCAD profile in fact; simply for testing stuff out; that has no customisation added to it. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Ah, yes, I will see what I can do about that. I have some autorun 'thingies' at my end though, and have had no problems... Thanks. Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 It's no big deal Leigh. I should have realised not to test anything anyway, without creating a separate Testing profile. One thing that did happen, however, is that it ran into a JIT error, specifically "Cannot write to a closed TextWriter" I have no idea what that means; but it happened as soon as the second drawing was opened, which contained the exact same x-ref that the first drawing in the series had. Then in the text file it generates as it runs through; it had only listed the first drawing that contained the x-ref in question. I guess that would be normal if it error'd out on the 2nd one. Let me know if you need any other error codes about this issue. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Nope, that 1 makes sense. will fix it now and then re-up it. Thanks. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Version 1.2 attached. Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 Thanks Leigh. Just wanted to give you feedback. When run, this found no errors this time Excellent stuff Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Great news. So does it do roughly what you are after, or is there something else you need? Thanks. Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 It pretty much does what I'm after. It would be simply awesome if it could find any x-ref's within a series of drawings (irrespective of what the x-ref is called), and report back the name of the x-ref file and the drawing that it is referenced into. Also, would it be possible to include more than one directory ? But then, I'm just being greedy. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Will see abouts reporting all xrefs, should be pretty simple. Not sure about multiple directories though, but again, should be pretty simple, in fact, now that I think about it, yes, should be possible. Will have a look when I get a chance. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 OK. Job done, multiple directories, lists all xrefs, and even notes the time of the search. Just a quick 'fresh air' break, then a few more tests, then will upload it. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 OK, lets just say, I love .NET, oh so easy. Version 2.0 attached. Allows multiple directories (only select 1 per ADD click, but click as many as you like) Logs all xrefs found. Specifies time and date of seach. Please let me know of any errors encountered. Thanks. Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 Job's a good un there Leigh - I take my hat off to you. That is a really good tool to retrospectively check AND report when a drawing contains an x-ref and its actual file location Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Thank you. Glad it works and is what you were after. Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 Sorry, should have asked before, would it be better just to list the xref name, or the xref path? Either can be done very easily. when I get some more time, I will build it up with options built in, to search for a specific xref, or any xref, and use name or path, etc. but for now, which would suit you best? Quote Link to comment Share on other sites More sharing options...
NBC Posted May 7, 2008 Author Share Posted May 7, 2008 Looking at the output file that generated, it has given me both. That works great for me Quote Link to comment Share on other sites More sharing options...
LCE Posted May 7, 2008 Share Posted May 7, 2008 I believe the output file lists the full path to the drawing that it is xrefed into, but only the name of the xref...although I may be wrong, damn, this is embarassing, can't even remember what I did a few hours ago... 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.