RegenerateIds Module
Give every component, port and connection on one sheet a fresh uuid, rewriting every reference to the old ones. Used when a sheet is copied (Import / Duplicate Sheet), and to repair projects in which two sheets were given the same ids by an earlier copy. Ids are unique within a sheet only, but a few places (waveform sheet labels, wire highlighting) assume they are unique across the whole project.
Functions and values
| Function or value | Description |
Full Usage:
correctDuplicateIds ldcs
Parameters:
LoadedComponent list
Returns: LoadedComponent list * string list
|
|
Full Usage:
makeIdMap (arg1, arg2)
Parameters:
Component list
arg1 : Connection list
Returns: Map<string, string>
|
|
|
|
Full Usage:
remapCanvasState idMap (arg2, arg3)
Parameters:
Map<string, string>
arg1 : Component list
arg2 : Connection list
Returns: CanvasState
|