set a colored line between floors

3897
2
02-04-2015 12:33 PM
aTomasaLooström
New Contributor

Hi,

I would like to set a "colored line" or some thing like that between floors to mark the different floors. Just when the wireframe is turned on i CE.

I am still learning and have looked at different tutorials and videos, but not figure out how to do it...

I would be happy if some one could post a code:-)


Best regards

0 Kudos
2 Replies
LR
by
Occasional Contributor III

Try this.. keep in mind that the "line" is actually part of the building, not just drawn on.

version "2014.0"


attr FloorCount = 10
attr FloorHeight = 2.9
attr FloorLine = 0.1
attr FloorPlusLine = FloorHeight+FloorLine


Lot -->
  extrude(FloorCount*FloorPlusLine)
  split(y){
  {FloorHeight: Floors | FloorLine: FloorLines}* |
  FloorPlusLine: Floors # "roof"
  }

Floors -->
  color (0, rand, rand)

FloorLines -->
  color(1,0,0)
aTomasaLooström
New Contributor

Hi,

Tank YOU,

You did my morning a lot better:-)

0 Kudos