質問

私はちょっと新しいRevitのソフトウェアのプログラミングと思うのAPIおよびproprieties実単な迷路.私はかなりの時間を、どのように、現在の表示を追加する方法を説明ができませんで一覧の取得をすべてのプロジェクト.

誰もが点いるAPIが必要なの?

役に立ちましたか?

解決 2

まあ、それはまだ実装されていないようです。私は(印刷シートを介して)それを行うためのハックウェイのいくつかの種類を見つけたが、それは紙を大量に消費します。 Revitの2012年を待たなければなりません:/

他のヒント

私は出来ないこRevit2012年のFilteredElementCollector.ここでの私の作業に基づくこの例では、(http://thebuildingcoder.typepad.com/blog/2010/04/filter-for-views-and-istemplate-predicate.html):

UIApplication application = commandData.Application;
Document document = application.ActiveUIDocument.Document;

FilteredElementCollector viewCollector = new FilteredElementCollector(document);
viewCollector.OfClass(typeof(View));

foreach (Element viewElement in viewCollector)
{
  View view = (View)viewElement;
  //Do something...
}
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top