InfraWorks General Discussion

InfraWorks General Discussion

Reply
Employee
s.gerber
Posts: 10
Registered: ‎05-02-2012
Message 11 of 19 (397 Views)

Re: Randomization of trees

11-29-2013 03:06 AM in reply to: thomas
Hi Thomas, you have to select all the trees and clear the Manual Style property. The Manual Style is the one used while drawing the forest and will always overrule the Rule Style. That's why you don't see the desired effect, even if the Rule Style is correctly applied by running your rule.
Contributor
thomas
Posts: 19
Registered: ‎06-19-2013
Message 12 of 19 (372 Views)

Re: Randomization of trees

12-05-2013 03:44 AM in reply to: thomas

Thanks!

 

That solved my problem, but i still dont quite understand why I can`t find the name of the spesific rulestyle when going into the properties palette and browsing rule styles.

 

Should`nt I be able to find my style "3_trees_style" by browsing the properties palette? And If I have several tree styles, how does the program know which of the rules to use when i cannot define or locate the Rule Style by name in the propertis palette?

infraworks_random_trees.jpg

Employee
s.gerber
Posts: 10
Registered: ‎05-02-2012
Message 13 of 19 (366 Views)

Re: Randomization of trees

12-05-2013 04:23 AM in reply to: thomas
Hi Thomas, it works a little bit different. What you see in the properties is the "Rule Style", not the "Style Rule". I.e. it is just the style that was assigned to the feature by running the rule. The feature itself doesn't know anything about which rule it has its style from.
New Member
rimvydas.sabonis
Posts: 2
Registered: ‎04-03-2012
Message 14 of 19 (355 Views)

Re: Randomization of trees

12-10-2013 12:41 AM in reply to: thomas

Hello,

 

With expression manager you can do more dynamic styling solutions. So here is another possible solution:

 

random trees

 

Good luck.

Contributor mkt
Contributor
mkt
Posts: 23
Registered: ‎11-17-2013
Message 15 of 19 (246 Views)

Re: Randomization of trees

01-13-2014 06:34 AM in reply to: thomas

Unfortunately this was not the solution for me. As far as I can se, I have the same issue as Thomas, but when I clear the manual style in properties, nothing happens. I commit and refresh my style rule again and manual style is applied again. 

 

Has anyone got some pointers?

 

At rimvydas.sabonis: What does it say in your expression?

Employee
s.gerber
Posts: 10
Registered: ‎05-02-2012
Message 16 of 19 (242 Views)

Re: Randomization of trees

01-13-2014 06:40 AM in reply to: mkt
When you cleared the manual style in the properties, did you make your changes persistend by pressing the 'Update' button at the top?
Contributor mkt
Contributor
mkt
Posts: 23
Registered: ‎11-17-2013
Message 17 of 19 (240 Views)

Re: Randomization of trees

01-13-2014 06:43 AM in reply to: s.gerber

Did not see that one there - Thank you!

 

BUT - it doesn't seem to work when the forest area is defined from a shp file?

Valued Contributor
kgrover
Posts: 76
Registered: ‎09-06-2007
Message 18 of 19 (40 Views)

Re: Randomization of trees

11-17-2014 11:29 AM in reply to: mkt

I am having issues with a style rule for trees as well. I have a shp file of multiple polygon areas for forested areas, and I want randomize type, size and spacing of trees in each individual polygon. 

 

I have a style rule created with several different tree types, but it is only picking one of the tree types per polygon, instead of randomizing many types in a single polygon. 

 

I have played with the expressions of the Style rule, and nothing seems to get applied to the properties of the polygon. 

 

Any help would be appreciated. 


Kevin

Employee
s.gerber
Posts: 10
Registered: ‎05-02-2012
Message 19 of 19 (30 Views)

Re: Randomization of trees

11-18-2014 03:18 AM in reply to: kgrover

Hi, the important thing to know here is, that style rules are working on a collection of features and assign exactly one style to each of the features. When drawing a forest with the draw tool, there are single point features created for each of the trees, while you have just a number of polygons when importing a shp file containing forest areas. I.e. you get only one style assigned to each of the polygons.

 

I'd propose to import the same shp file multiple times, once for each tree type, and to define different values for 'Object Spacing' and 'Object Spacing Variance' in the 'Table' tab of the 'Data Source Configuration' Dialog. This way you are also able to mimic the weight value of a style rule, i.e. a lower object scpacing value results in higher occurrence of a type of trees.

 

Hope this helps.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.