Stats

28.10.13

Vaulty McVaulterson

If you've ever woken up in a strange hotel room, sticky and covered in glitter, wondering how the hell you got there and then suddenly realize you have Vault consulting to do in 40 minutes - well, then you know what it is like to be me.

While the glitter is fairly easy to explain*, the question on my mind is, "How did I become a Vault person?" My answer is, "If you have a modicum of logical thinking and ever checked out a book at the library, you too can be a Vault person."

This post specifically addresses an issue from a customer site that I encountered last week. I plan on posting more basic how-to's as time permits, however, the contents of this post are more on the server administration end.

Here's what it looked like when trying to create the backup manually (e.g. not through scheduled backups) -


This is an issue I encountered with Vault Collaboration AEC 2013, but it also applies to Vault Professional 2014. The client wanted Vault backups to be routed directly to their network drive, but due to permissions limitations at the organization, the backups were failing.  I whipped up a workaround/kludge/solution that easily fixed the backup situation.

Here's why the network backups were failing:

When Vault is installed on the server it creates a local user called AutodeskVault. By default, this is the user that "owns" the SQL instance. This is the user that logs in when backups are created. If you want Vault backups to go directly to the server you either need to change the default SQL user or add AutodeskVault as a user on the network with write permission to the backup directory. Since I didn't want to redo all the scripts that call the SQL database username and password, and since network security policy at this organization forbids non-human users, I opted for plan C; just make the backups locally and use Windows Task Scheduler to copy backups to the network.

It doesn't matter if it is a full backup or incremental, essentially the same thing is happening "under the hood." When you create scheduled backups in Vault, really what it is doing is creating a task in Windows Task Scheduler and generating a simple batch file to log in and create the backup.

At the end of the process I had three Vault-related tasks in Task Scheduler:

  1. Make incremental backups Monday-Thursday at 6:00pm (going to C:\Vault BKUP\)
  2. Make full backup Friday at 6:30pm (going to C:\Vault BKUP\)
  3. Every day at 8:00pm, copy new files from C:\Vault BKUP\ to N:\Vault Bkup\  [Since I used the /d switch in the script, it should only be copying new files to the server. ]
A big thing to remember in Windows Task scheduler is to make sure you have the security setting using the "Run whether user is logged on or not" checked. 

So that's my little fix. So far so good. If anyone knows of a more elegant solution, I'm open to hearing it. 

*In regards to the glitter, some lip gloss exploded in my luggage.

16.10.13

The Earth Moved: Civil 3D, Subsidence & Milkshakes

In recent classes I've taught, several people have asked me about how to deal with the effects of ground subsidence in Civil 3D.  This is not a question I've encountered before, as it is largely negligible in my homestate of Wisconsin. In California, however, it is not uncommon for swaths of land to drop a foot or more over the course of a long life cycle project, wrecking havoc on the earthwork quantities. How can you get good corridor data when your surface target is actually a moving target?

Setting aside the shocking environmental causes of subsidence in California's central valley (weep for the groundwater, children, and enjoy your almonds while you can) I will focus here on how to deal with it in the software. However, I can't help but throw in one of the scariest scenes from modern cinema involving milkshakes and one of the primary causes of subsidence...
Anyhoo... right, where was I? Subsidence and Civil 3D. 

You absolutely MUST use Data Shortcuts (or Vault data references). Even if you are just the proverbial "one man shop" and never intend to share data with anyone, the use of data shortcuts is critical for keeping file size manageable.

The first drawing in the Civil 3D workflow is usually the existing ground drawing containing survey data. To deal with subsidence, I recommend always using at least two surfaces. The _Existing Surface is the surface created as a data shortcut and will end up being the "workhorse" surface for existing ground profiles, corridor target surface and quantities.
The definition of _Existing Surface consists only of other surfaces pasted into it.  This allows for the original data (called Flown Data 10.5.2006 in my example) to be the base but additional surfaces can be added over it as needed. It is important to note that when you use the Paste Surface command, the order in which you paste the surfaces makes a difference on the result. Newer surfaces should take over where they overlap old data. This order can be changed in the Surface Properties Definition tab, if needed. 
So why do I recommend this instead of just swapping out point groups? Creating new, independent surfaces as new data comes in ensures that the obsolete data is completely obliterated in the areas to which it applies. You may also wish to keep a record of the old surface for comparison purposes. 

If and when the surface changes, everyone will get the update via the data shortcuts.

Is anyone else hungry for a milkshake? How 'bout a nice tall glass of saltwater intrusion?