A blog dedicated to tidbits of software information related to the AEC industry. Most tips and tricks are roughly 60 seconds because, "Hey who doesn't have 60 seconds".
*The views and opinions expressed in this blog do not reflect those of my employer.

Wednesday, August 5, 2015

Get Current User in #DynamoBIM

A few weeks ago I posted an update to Rhythm which included some pretty nifty helper nodes, named Ayuda and OS.

One of the nodes I included in this update was OS.CurrentUser. This simply retrieves the current user that is logged in for use elsewhere. Below is on example of a good use for this.

2015-08-05_08h49_27

My only hangup with this node is it requires python. That’s great and all but there needs to be another way!

That’s when I came up with the following workflow.

2015-08-05_08h42_03

All it does it retrieve the file path from your current open Revit file and retrieves the username between some typical characters with the package Zebra. 

2015-08-05_08h43_06Since your local files are typically saved on your local hard drive this will work pretty well.

This means we can now embed file paths in our definitions if they are at a specific location!

-johnp

No comments:

Post a Comment