看板 C_Sharp 關於我們 聯絡資訊
原址: 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
wa007123456:你的參考沒加入這個類別庫 10/23 17:22
wa007123456:所以會找不到這個名稱空間 10/23 17:22
hugh1682:我該怎麼做呢? 因為我不太懂 10/23 19:47
soup514:http://ppt.cc/-NOO 10/23 21:39
hugh1682:關於references這點,我已經有加入些了 10/23 23:12
hugh1682:http://ppt.cc/QCv2 10/23 23:13
hugh1682:Use the UIApplication.ActiveUIDocument.Selection.Elem 10/23 23:13
hugh1682:....這句話有什麼意思嗎?? 是要宣告些什麼嗎? 10/23 23:14
soup514:用那個物件來取東西啊 sample code寫得滿清楚的了 10/24 00:05
hugh1682:對不起,我只是新手入門 所以很多東西都不太懂 10/24 00:35
hugh1682:到最後我是在補給個 using Autodesk.Revit.Attributes; 10/24 00:36
hugh1682:和using Autodesk.Revit.UI.Selection; 10/24 00:36
hugh1682:但sample code 裏頭都沒有說明 10/24 00:36
hugh1682:所以我只是想知道Use the UIApplication...這句意思是不 10/24 00:37
hugh1682:是要自己額外補 code進去 感謝 10/24 00:38
z02852001:你需加入參考或者Using 某些東西 10/25 09:14