Script Author: Ian Rivard

 

Description:

Sets the color attribute on FEMAP layers via the API (the FEMAP front-end GUI doesn’t expose feLayer.color as an editable property). Two modes: random color per layer (avoiding the bad-color list 0/1/24/25/26/49/74/125+) or single fixed color for all selected layers. Cross-listed in Model Organization (primary) and View menus.

 

Use Instructions:

Run the tool. Pick the layers via feSet.Select(FT_LAYER) (single or multi). Pick mode: Random per layer / Fixed color. If fixed, pick the color. Confirm.

 

Requirements:

Open FEMAP model with at least one layer.

 

Notes:

Pairs with Color Elements by Value (which can color elements by their layer membership) and Import Export Groups Layers v2.8 (which round-trips feLayer.color via the new Layer Colors block in the export format).

 

Advanced Users:

To our users: We appreciate feedback on our tools and encourage you to modify them to your specific needs. If you make an improvement you feel would be valuable to others, please submit it through our contribution page.