Monday, 29 October 2018

Mapping Project xrefs in a social network chart

At the end of last year I had the thought that maybe it would be helpful to map all the xrefs of a project into a social network chart to see how a project had been put together using external references. I thought it would let you quickly see visually how  someone had set up the files and newbies would be able to see how I had put projects together in the past.

I posted a request in the forums to see if anyone had seen a tool along these lines, but the post received no replies. So I figured out away to do it reasonably quickly with some free lsp code available here and the social networking chart tool for Excel called Nodexl. The process is not as slick as i would of like but you get the idea.  Here is the workflow i used.

1. Copy and paste the lsp code from this forum post into notepad and then name the file something and add the .lsp extension.

drju1wmu

2. Open cad and then type “appload” and browse and load the lisp file created in step 1. Type “Batchfindxref” to start the lisp program. Go to the project folder where you have all the dwg files for the project stored. How wait for the program to export a .csv file of the xrefs found in each file.

You should see something like this:-

k4eu3cet

3. Now go to the Nodexl website and download the free basic version. Once installed start the Nodexl template by going to start and type Nodexl. Now copy column A and B from the csv file into column A and B in the Edges tab of the Nodexl Template. You can now press the refresh button and the graph will update showing the relationships but with no labels on the nodes. To add labels to the Vertices go to the Vertices Tab and in column H add the name to be used. Now refresh the graph again and the labels will be added.

gn0hoypt 

2luievne

There are various options for the graph style you can try different types and re lay out the graph various times to get some thing that looks ok. You can then manually move the vertices to make the graph clear. Once you are happy you can right click on the graph and save an image file of the graph.

rvppdbhj

The graph is not the clearest with you have long file names and I have not found a way to rotate the text that would help with the overlapping labels.

I think it would be possible to program something up in cad (but do not have the time) that would do a similar thing with say multi leaders that are linked together and contains the xref name, layer , file path and hyperlinks to the file and maybe a thumb nail preview of what is in the file.

Sunday, 28 October 2018

Reinstalling Livewriter and Clipboard Live

As I have previously mentioned I got use to using MS Live writer with the addin Clipboard Live. Having just upgraded PC to a laptop, I needed to reinstall the programs again so to trick live writer to install I had to set up a blank wordpress blog as blogger and Live writer do not work together any more and once Live writer was installed I had to download the code for the clipboard live addon from the link given in the post here 

fh1vnumd

Once the zip file was downloaded i had to browse to the Release folder to find a copy of the compiled .dll for the addin and then

5e43lpsd

paste the addin .dll to the plugins folder of livewriter

jeruqkwd

Then on restarting livewriter, I how have the ClipBoard Live Icon back and can past images into blog post as quick as ever.

c50tovql

Related Posts Plugin for WordPress, Blogger...