I am trying to get an outline on a simple building color

347
2
08-28-2017 11:12 AM
MichaelGuarino
New Contributor II

I am trying to get an outline on a simple building color. How would I specify a outline color and thickness in a CGA rule. Any help would be great.

Here is a sample of what I have now for making a building a color.

/**  * File:    Gray.cga  

* Created: 28 Aug  

* Author:  MPG

 */  version "2016.0"  

@Location(-70,-277)

 attr colorValue=0  

 Shape --> color("#ffffff")

0 Kudos
2 Replies
LR
by
Occasional Contributor III

Do a component split with edges and faces. Like

Lot -->
 extrude(20)
 comp(f){all: walls}
 comp(e){all: edges}
0 Kudos
CherylLau
Esri Regular Contributor

Then, to specify the edge thickness:

const edge_width = 0.1

edges -->
     primitiveCube
     s('1, edge_width, edge_width)
     center(yz)
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

You can use a cylinder instead of a cube if you want rounder edges.

0 Kudos