InfraWorks: Rule Styles to Created Objects

December 29, 2016 By Leo Lavayen Leave a comment

 

We previously discussed using Style Rules in a few other blog posts.

  • Learn more about the random rule scheme with single rule here
  • Learn how to call out each value individually with unique rule here

To create a more realistic model consider replicating the variances nautrally found in the world. The use of rule set allows users to randomize these two types of city furniture models:

  • Vehicles
  • Vegetation 

As seen in the images below, the string of cars and the stand of trees only have one type of style applied giving every item the same appearance. The model lacks interest and realism.

BEFORE:IWR - 1.jpg

    AFTER:    IWR - 2.jpg

You have the option to edit each car or tree manually through the properties panel and individually set styles, but that would be very time consuming. If you did spend the time editing each item, be careful editing the overall shape as it would reset back to the default properties. The best pracice would be to develop a rule set.IWR - 3.jpg

Let's take a look at randomizing from a specified pool of styles for the car line up and a stand of trees.

 Setting up Car Rules:

  1. Access the Style Rules palette and select the City Furniture tab
  2. Add new rule (green +), provide a name and click OK

 IWR - 4.jpg

  1. Double click on rule to open Rule Editor

 IWR - 5.jpg

  1. In the Expression area set what will match the created model property with this rule.    IWR - 6.jpg 
  1. Select the Edit button to open the Create Filter Expression dialog box.  This helps set the InfraWorks field you wish to display and the user-generate value. In the example below we are focusing on the TAG field and the user-defined text “CARS”. 

 IWR - 7.jpg

  1. In the Styles area, add the styles to be randomly placed in the created model.
  2. Click on the green + Add button to add styles as needed

 IWR - 8.jpg

  1. Select the appropriate category type and click OK

 IWR - 9.jpg

  1. Repeat if necessary to create a pool of styles for the rule to use. You can increase the use of a particular style by increasing the Probability

IWR - 10.jpg

  1. Click on the Run Rules button

 IWR - 11.jpg

  1. The rule will not take effect until you clear out the Manual Style field from the Properties or Asset Card. Make sure you are using the correct field and values (TAG below set to “CARS”) IWR - 12.jpg
  1. If successful your cars should have applied the styles in the rule set

CARS 2.jpg    Important note:  If you grip edit the line or area the style resets to the default look.  After any edit, make sure the manual style is blank.

 

The same series of steps will be applied to any other rule sets.  Now we will apply styles to trees.

 Setting up Tree Rules

  1. From the Style Rules Palette
  2. Switch to the Trees tab
  3. Add new Rule (green +), Name it and click OK

IWR - 14.jpg 

  1. Double click on rule to open the Rule Editor dialog box

IWR - 15.jpg  

  1. In the Expression area set what will match the created model property with this rule.

IWR - 16.jpg    

  1. Using the Edit button, open the Create Filter Expression dialog box.  This sets the InfraWorks field to display and the user gained value. In the example below we are focusing on the TAG field and the user typed in text “TREES”. 

IWR - 17.jpg 

  1. In the Styles area, add the styles to be randomly placed in the created model.
  2. Click on the green + Add button to add styles.

IWR - 18.jpg 

  1. Select the appropriate category type and then click OK

 IWR - 19.jpg

  1. Repeat as needed to create a pool of styles for the rule to use. You can increase the use of a particular style by increase the Probability

 IWR - 20.jpg

  1. Once you are done, click on the Run Rules button

 IWR - 21.jpg

  1. The rule will not run until you clear out the Manual Style field from the Properties or Asset Card. Make sure you are using the correct field and values (TAG below set to “TREES”)

    IWR - 22.jpg

  1. If successful your trees should have applied the styles in the rule set

TREES 2.jpg    Important note: If you grip edit the line or area the style resets to the default look.  After any edit, make sure the Manual style is blank.

 

This process of adding variety to repetitive objects will help your model come to life and tell a better story.

 

 

Tagged with Infraworks, Style Rules, akn_include, infrastructre

About Leo Lavayen

Cary, NC Infrastructure Technical Consultant

Something Powerful

Tell The Reader More

The headline and subheader tells us what you're offering, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.

Remember:

  • Bullets are great
  • For spelling out benefits and
  • Turning visitors into leads.

Subscribe to Email Updates

Categories

see all

Follow us on Twitter

Blogs We Follow

At Land's End (Infrastructure)
Being Civil (Infrastructure)
Being Inventive (Manufacturing)
Between the Lines (Design)
Beyond Design (Building)
Cracking The Vault (Manufacturing)
Line//Shape//Design (Autodesk)
Lynn Allen's Blog (Autodesk)
The Revit Clinic (Building)
Up and Ready (Support)
Without A Net (Support)