CreateScratchName for layer names

Idea created by curtvprice Champion on Oct 15, 2014
    • aewilson
    • curtvprice
    We have seen issues where people have several layers in memory with the same name and this has led to conflicts.

    Would like an enhancement to CreateScratchName to look through layers/table views in memory and return one that does not exist yet.
    >>> CreateScratchName("", "",  "layer")