Revit API を使用して、「ビュー ビュー」のシート番号にアクセスしたいと考えています。ビューに属するパラメーターを検索しようとしましたが、インテリセンスによってパラメーターとしてリストされていません。ドキュメントまたはプロジェクトで、読み取り専用のシート番号パラメーターであることがわかります。
foreach (Element elem in collection)
{
View view = elem as View;
if (view.ViewType == ViewType.FloorPlan)
{
using (Transaction transView = new Transaction(doc, "Set Param"))
{
transView.Start();
int testScale = 100;
//set the scale of the view
view.Scale = testScale;
//get the name of the view
message += "\nView name: " + view.ViewName;
message += "\nScale after set: " + view.Scale;
transView.Commit();
}
}