Community
InfraWorks Forum
Welcome to Autodesk’s InfraWorks Forums. Share your knowledge, ask questions, and explore popular InfraWorks topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Infraworks 360 Scripting Furniture

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
rolandfrye
1711 Views, 4 Replies

Infraworks 360 Scripting Furniture

Does anyone know of a way to apply scripting to City Furniture items such as cars and people? I am creating a decent sized model, but want to try and get it to be more random than me just picking and choosing objects or modifying path intesities... Any help is greatly appreciated.

 

Thanks,

R

4 REPLIES 4
Message 2 of 5

Hi Roland,

 

If I understand your question correctly, I think that you can accomplish what you are looking for using Style Rules + Expressions.

For instance, you can define Style Rules for property values of an imported data source, using filter expressions. You can then assign multiple styles to one style rule and use the Probability column in the Rules Editor to increase or decrease the frequency that each style in the style rule will be used. See this help topic for more information about using Style Rules: http://knowledge.autodesk.com/support/infraworks-360/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU...


Additionally, there are ways to randomize your data using scripts. While this is an old blog post, it should still hold true for the most part (except the old UI):http://autodesk.typepad.com/bimagination/2011/12/randomizing-data-in-infrastructure-modeler-for-demo... 

 

Take a look at that post and then please let me know if you have any more questions!

 

Thanks,

Elliott


Principal Specialist, Infrastructure
Message 3 of 5

Also, this explanation of using Style Rules in InfraWorks (from Brian Hailey) remains the best I have seen yet.

 

http://civil3dplus.wordpress.com/2014/04/02/infraworks-styles-based-on-object-data/ 


Principal Specialist, Infrastructure
Message 4 of 5

Well, it worked... But has it's quirks, thats for sure. All three posts were helpful for the most part, but they all seem to just apply to imported data, which in my case was not true.

 

I went through and added my City Furniture item, using the path ability and to also keep all of the furniture items tied to the series instead of individual pieces. This is where things start to ... Or maybe just me... Due to the size of my model, using ID's did not work, unless I had the time to sit down and look at all furniture pieces one at a time, which I might as well just change the styles individually if I was going to check all the ID's.

 

The Data Source value was also useless considering all manually placed pieces default to -1. Pretty much everything else was useless/blank in the sense that being manually inserted no other information is pre-populated in any manner with the exception of the External ID... See screen1.png... So I had to use this to identify what to apply the style to.

 

Now I would have used the Manual Style, but I have other items in my model with that style and dont want them to change in this process. So as a result the only other viable option is the External ID see screen2.png. This would be perfectly fine if you could copy the ID from the properties dialog or at least an easy way to look it up in the Create Filter Expression dialog.

 

From here it was almost the exact same as the posts all mention; however, none of the posts really mention what I found out next. I ran the rule, but nothing changed... Reason being is that the objects manual style overrides the rule style. So with my series selected, I just deleted the manual style from the properties and updated the series and I was all good to go... Or at least I thought.

 

If I want to go back through, and change one of the series' path vertices, or the feature density, then it changes the series to a single manual style, and as a result, you must go back and delete the manual style in the properties, run the rule again, and hope that you get a result that you are truly happy with.

 

I did run across a few other issues in regarding ways to randomize height, rotation, spacing and variance, but I guess moving furniture around, rotating, etcetra is for a drafter??? 🙂 As you can see in screen3.png everything comes in with no rotation and uses all of the default properties, but at least I have random furniture now.

 

Before posting this questing, I had run across two of the posts that you mentioned, but did not give them much thought considering I was not dealing with imported data and there was such a lack of default/built-in data. That is why I was looking to see if there was any way to manipulate and control all of this via Scripting, and also so I could at least use more Math functions than those that are available in the expression editor.

 

If anyone does have any ideas in regards to working through this process using Scripts or if there is something that I am missing, then please chime in... Thanks Elliot for your help, and I hope this helps others as well.

Message 5 of 5

Hi. I'm a user of Infrawork and I want you to help me if possible with a problem I faced. So I imported an animated DAE file from 3DS Max 2021 to Infraworks and I see the car with animation in the preview of 3D model, but no animation when I close and refresh. I'm sure that I followed all instructions. Thank you for your help next time. My email address: albouryniang2002@yahoo.fr Phone: 00221775200240.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report