作者hugh1682 (hugh)
看板C_Sharp
标题[问题] revit api
时间Wed Oct 23 14:33:20 2013
原址:
http://ppt.cc/OroT
想问一下
2. Use the UIApplication.ActiveUIDocument.Selection.Elements property to
retrieve the selected object.
这句是什麽意思? 他很重要吗?
因为我按照 下面的code复制到c#上会有错误
还是说是其他地方错了?
前面我还有加
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.Revit.UI;
using Autodesk.Revit.DB;
using System.Windows.Media.Imaging;
using System.Windows.Markup;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
因为我不懂,所以都乱加 using,只希望没有错误就好
感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.255.169.219
1F:推 wa007123456:你的参考没加入这个类别库 10/23 17:22
2F:→ wa007123456:所以会找不到这个名称空间 10/23 17:22
3F:→ hugh1682:我该怎麽做呢? 因为我不太懂 10/23 19:47
5F:→ hugh1682:关於references这点,我已经有加入些了 10/23 23:12
7F:→ hugh1682:Use the UIApplication.ActiveUIDocument.Selection.Elem 10/23 23:13
8F:→ hugh1682:....这句话有什麽意思吗?? 是要宣告些什麽吗? 10/23 23:14
9F:→ soup514:用那个物件来取东西啊 sample code写得满清楚的了 10/24 00:05
10F:→ hugh1682:对不起,我只是新手入门 所以很多东西都不太懂 10/24 00:35
11F:→ hugh1682:到最後我是在补给个 using Autodesk.Revit.Attributes; 10/24 00:36
12F:→ hugh1682:和using Autodesk.Revit.UI.Selection; 10/24 00:36
13F:→ hugh1682:但sample code 里头都没有说明 10/24 00:36
14F:→ hugh1682:所以我只是想知道Use the UIApplication...这句意思是不 10/24 00:37
15F:→ hugh1682:是要自己额外补 code进去 感谢 10/24 00:38
16F:推 z02852001:你需加入参考或者Using 某些东西 10/25 09:14