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: 

Building Elevations - Some have them others don't

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
BrianHailey
1014 Views, 6 Replies

Building Elevations - Some have them others don't

I have a dataset for some buildings and the dataset has an elevation field. Unfortunately, not all of the entries have an elevation. If I tell AIM to use that field for the height of the building, any building that has a zero for the field ends up being a roof on the ground. How can I use that elevation if it's available and then use a default elevation if one isn't available?

 

Thanks!

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

6 REPLIES 6
Message 2 of 7

I would recommend the following steps:

  1. Import your buildings with the "elevation" field mapped (as you already did)
  2. select a building with such a "zero height" field and show the feature properties for that building
  3. right-click on the "zero height" property and select "select equal" from the context menu
  4. now all buildings with "zero" height are selected and you can change the height value to another "default" one
  5. press "update" at the top of the "properties" inspector to commit the changed values to the DB
  6. the model will regenerated with the new set height values


Konstantin.B
Software Architect
Message 3 of 7

Select Equal, how awesome is that!? That's almost as cool as the AutoCAD Select Similar (ok, perhaps cooler).

 

Problem I'm seeing now is after changing the values, the display doesn't change (yes I updated them). If I select an individual building that had a height of 0, it shows the height that I changed it to but the roof is still on the ground. If I select a building and then grab the grip and raise it way up in the air, several of the 0 height buildings will update but not all of them. Any suggestions?

 

If you didn't follow what I said, here's a video showing what I've done. http://screencast.com/t/K1bXaT44Iw 

 

p.s. I'll probably be asking a lot of questions as I'm doing a lab at AU on this software. Go figure, huh? They picked my AIM class and none of the C3D classes that I know like the back of my hand. Well, after AU I should be an expert!

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 4 of 7

If for whatever reason not all features get refreshed/regenerated in the 3D scene, you can always force a "regenerate operation" by pressing "F5"... Smiley Wink



Konstantin.B
Software Architect
Message 5 of 7

And BTW: you could also take advantage of the JavaScript scripting functionality during data import:

  1. start the data import wizard by selecting a vector data source (e.g. building foot prints)
  2. select the data type (e.g., "Buildings")
  3. switch to the "Script" tab
  4. press the "edit" button
  5. use something like the following script:
function Process(SOURCE, BUILDINGS) {
    var height = SOURCE["ROOF_ELEV"] - SOURCE["GRND_ELEV"];
    if(height <= 0.0) {
height = 30.0;
BUILDINGS.TAG = "strange";
}
 
BUILDINGS.EXTERNAL_ID = SOURCE["FeatId"];
BUILDINGS.ROOF_HEIGHT = height;
BUILDINGS.ROOF_SLOPE = 33;
BUILDINGS.RULE_STYLE = "Facade/Brick/Biron";
 
return true;
}

 And you can find out the "strange" buildings by looking at or filtering the "TAG" property of the buildings...



Konstantin.B
Software Architect
Message 6 of 7

F5 did the trick. Thanks!

 

Also, do you know where I can find more information on the format/language/whatever for using the scripts?

Brian J. Hailey, P.E.



GEI Consultants
My Civil 3D Blog

Message 7 of 7

The scripts are using JavaScript.

 

This page would be a good starting point: http://wikihelp.autodesk.com/Infrastructure_Modeler/enu/2013/Help/0000-User_s_G0/0024-Procedur24/003... right now there isn't much information available, but since this is a Wiki, you should also be able to contribute and improve on the available knowledge... 🙂



Konstantin.B
Software Architect

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

Post to forums  

Rail Community


Autodesk Design & Make Report