public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIDocument uiDoc = commandData.Application.ActiveUIDocument; Document currentDoc = uiDoc.Document; Linetypes.EditLinetypes(uiDoc); return(Result.Succeeded); }
public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIDocument uiDoc = commandData.Application.ActiveUIDocument; Document currentDoc = uiDoc.Document; using (Transaction trans = new Transaction(currentDoc)) { trans.Start("LineStyles"); Linetypes.ListLineStyles(uiDoc); trans.Commit(); } return(Result.Succeeded); }