作者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