Hi, Guys
Been using this code for a couple of months now and it has been a great help in checking the drawings of newbies to figure out what the heck they have done with the xref's when setting up a new projects by themselves and gone off script. We are only a small office so do not have rigid cad standards (trying to introduce as time allows) and I am struggling at the moment to train all the new guys on the ways of the Autocad, particularly with regards to land development projects and setting up xref’s.
To this end I have Dream 2.0 where I want to get a visual graph of how all the drawing files within a project folder are linked together. So you can see on one page and discuss how a project has been setup and explain what is wrong and how it should be corrected in relation to a company standard. I have been able to develop a basic graph as explained in this blog post.
http://c3dxtreme.blogspot.com/2018/10/mapping-project-xrefs-in-social-network.html
However I am missing a few additional pieces of information that I would really like to add to the graph as well.
- The name of the layouts in each drawing.
- The layer of the xrefs in each drawing and
- Possibility a thumbnail preview of the drawing.
To that end I have trawled net again and found various pieces of code that do parts of the job but really need assistance to string it all together into the one super routine.
To search all of the drawing files in one project folder at once I found the code mentioned in my blog post BatchFindXref.lsp that can be found here
http://forums.augi.com/showthread.php?152990-Listing-all-xrefs-attached-to-a-group-of-(unopened)-dra...
Into this code I would like to add functions that will include into the csv file it produces as additional columns of data the layer the xref is on and a string list of layout names.
Once included in the csv I can manually manipulate the data in the nodexl template to add to node labels etc.
To add the xref name I thought the functions of xrefunderlay could be added and for the layouts names in each drawing. I found this example code
http://forums.augi.com/showthread.php?70723-Export-Layout-Tab-Names
As for the thumbnails I found this code but do not know if it still works have tried with no luck or if nodexl will support the images for labels being nested in the excel file for icons. I found this code to get the dwg thumbnail drawing previews
http://www.theswamp.org/index.php?topic=33819.msg391791
So if you are able to suggest how to merge these bits of code together or help that would be greatly appreciated.