예제 #1
0
        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);
        }
예제 #2
0
        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);
        }