zoukankan      html  css  js  c++  java
  • Revit API PickPoint过滤条件

    //过滤选择,加上过滤条件,没有看出来差别。
    [TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)]
    public class cmd : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string messages, ElementSet elements)
        {
            UIApplication uiApp = commandData.Application;
            Document doc = uiApp.ActiveUIDocument.Document;
            Selection sel = uiApp.ActiveUIDocument.Selection;

            Transaction ts = new Transaction(doc, "http://revit.5d6d.com");
            ts.Start();

            ObjectSnapTypes snapTypes = ObjectSnapTypes.Endpoints | ObjectSnapTypes.Intersections;
            //XYZ point = uiApp.ActiveUIDocument.Selection.PickPoint(snapTypes, "选择端点或交点:");
            XYZ point = uiApp.ActiveUIDocument.Selection.PickPoint("选择端点或交点:");
            TaskDialog.Show("info", point.ToString());

            ts.Commit();
            return Result.Succeeded;
        }
    }
    url:http://greatverve.cnblogs.com/p/pickpoint-ObjectSnapTypes.html
  • 相关阅读:
    公平锁,非公平锁,乐观锁,悲观锁
    需求分析
    需求的获取渠道
    php将中文字符串分割为数组
    面试题
    ecshop中错误
    应用上线前必须进行的10个QA测试
    资料1
    tp数据库配置
    Web开发思路
  • 原文地址:https://www.cnblogs.com/greatverve/p/pickpoint-ObjectSnapTypes.html
Copyright © 2011-2022 走看看