Sometimes, it is much more simple to call the native command.
var doc = Application.DocumentManager.MdiActiveDocument; if (doc.Database.LayerStateManager.HasLayerState("_LAYISO_STATE")) doc.Editor.Command("_LAYUNISO");
Gilles ChanteauProgrammation AutoCAD LISP/.NETGileCADGitHub