Anyone who has been using Autodesk InfraWorks and InfraWorks 360 will know by now that the defaults in the program generate cornered buildings and rounded ground and water features. In reality, we also know that buildings can be round, and water and ground coverage areas can have corners.
Although there is no built-in option from any menu that allows you to control this setting, there is a variable within the InfraWorks resource files (.JSON) that controls the value for corner radii.
The value is called SmoothParam, and can be found in the .JSON files for the respective elements. Building settings are in the Buliding.JSON file and Water settings are in the Water Area.JSON file. The files themselves are saved as part of the individual InfraWorks model’s backup files, so you may have to do some digging to get to the folder.
A typical path would be:
Once you find these files, open the one you want using Notepad, and modify the SmoothParam value to adjust the corner settings for those elements. When working with .JSON data, there are some important things to know.
- .JSON files are generated for the model when the elements are added in InfraWorks. For example, if your model does not include (and never has) any water features, the Water Areas.JSON will not exist. You’ll need to create an element of that type first so the .JSON file is generated, then you can edit the setting.
- The .JSON files are referenced by the model when the model is originally opened. That being said, any changes you make to variables within .JSON files require you to close and re-open the model before those changes take effect.
- The default values to use for SmoothParam are between 0.00 to 0.499. The default value for Buildings is 0.00 to create corners, and 0.499 for Water Areas to create fillets.
- You can use any number 0.00 or higher. You’ll get some funky shapes if you get anywhere near or above 1.0, but it is worth checking out just to see what happens.
The fancier looking buildings below were created in the same model using SmoothParam values between 0.65 and 0.99. Anything above 1.0 gets difficult to control. (I’ve already tried setting it up to 100.)
At this point, you may also be thinking that there’s got to be an easier way to do this than changing the value, saving, closing and re-opening the model every time you want something to look different. At least that’s what I was thinking.
Fortunately, the Copy and Paste functions work from model to model in InfraWorks. That means you can spend some time creating a handful of custom objects in a file like I did above, then simply copy and paste them into a new model whenever you need it. On top of that, the components you copy remember what SmoothParam value they were created with, so you can edit them accordingly without having to change anything in the new model. You can also use the Add Vertex option after copying to modify the shapes as much as you want.
Now you know how to customize your models a little more to include round buildings and square water or ground coverages. And, you’ve got an idea on how to save some time by creating a sample file with predefined custom elements that you can copy whenever you need them.
Happy modeling!
Matt Miyamoto, P.E.
Ideate AEC Application Specialist
Matt is a licensed Civil Engineer in the state of Hawaii. Matt obtained a BS in Mechanical Engineering from the University of Hawaii at Manoa, and has 7 years of private sector design experience which he applies in his role as an application specialist with Ideate, Inc. His project experience includes residential and commercial site development, private and public sewer, water and drainage systems, harbors improvements, and roadway improvements. While in Hawaii, Matt was involved in multidisciplinary projects for City and County agencies, State Departments, the Army COE and private developers. @MattM_PE
Get it. Know it. Use it.