Method Edit
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Edit(IEnumerable<string>, CadTranslateLayer)
Edit…: gives the mappings of the layers named the settings of the layer they go to, as the Edit Layer dialog sets them; the layer in the Translate To list and the file it came from are left as they are.
public int Edit(IEnumerable<string> from, CadTranslateLayer settings)
Parameters
fromIEnumerable<string>The names of the layers translated, as the mappings list them.
settingsCadTranslateLayerThe layer whose colour, linetype, lineweight, transparency and plot style the mappings take; its name is not used.
Returns
- int
How many mappings were changed.
Exceptions
- ArgumentNullException
Thrown when the names or the settings are null.