Posts

Showing posts from August, 2018

Infraworks: Javascript to Randomize Species and Height

What it Does and Where to Paste It The script below is to replace the default tree feature script that is in the "Script" tab of the data source configuration.  Adjust percent chance of tree type by modifying the if condition (Math.random() > 0.5) Set the base line scale factor for each tree type by modifying the scaleFactor variable. Set how much variance you want to allow by modifying scaleVariationMax variable. The Script: I hope you find this useful.

Create Snapshots from Bookmarks with Javascript (Debugged)

On April 19th, 2017, Matt Wunch published a quick script to generate snapshots of every bookmark in this AUGI article: https://www.augi.com/articles/detail/tips-for-increasing-efficiency First of all, thanks Matt. I was looking for this exact same thing. There were a couple of bugs that made it fail to run, however. I took the liberty of fixing the bugs and reformatting it a little bit. Well, here is the working version of the code: Notes Make sure that the filePath specified exists or Infraworks will freeze. Make sure that bookmark names do not use spaces or special characters (except underscore). Use a variable safe name like camelCase or Underscore_Word_Separation. Again, a big thank you to Matt Wunch for the original code. I knew enough to debug the code but I wouldn't have been able to write it from scratch since I havn't dived into the Infraworks javascript functions or variables yet. Hope that helps!

Lessons We Can Learn From Gamers

Image
Pro gamers stay on top by the slimmest margins. To stay on top, they have worked out the most efficient habits on how to interact with a computer. These lessons are transferable to CAD work. Eliminate Hunt and Peck I hope nobody reading this types by the hunt-and-peck method anymore. Even the fastest hunt and peck die-hards top out at roughly 50 wpm. Good touch typists, on the other hand, operate at 100+. Clearly, hunt-and-peck destroys productivity. For CAD work, hunt-and-peck means something different since one is one the keyboard and the other is on the mouse. It looking at the keyboard, looking for a keystroke because shortcuts are spread out over the entire keyboard. It is also taking the mouse hand off the mouse needlessly. The best way to eliminate hunt and peck for a keyboard-and-mouse situation, as gamers have long established, is the WASD position. The WASD position is where the pinky is on Left Shift, ring finger on A, middle finger on W, and index finger on D. Lumion...