Revit API创建详图视图
时间:2014-03-03 05:56:12
收藏:0
阅读:873
start
end
//创建详图视图
Transaction ts = new Transaction(doc, "http://greatverve.cnblogs.com");
ts.Start();
Reference refElem = selection.PickObject(ObjectType.Element, "选择");
Element elem = doc.GetElement(refElem);
BoundingBoxXYZ bBox = elem.get_BoundingBox(doc.ActiveView);
ViewSection viewSection = doc.Create.NewViewSection(bBox);
ts.Commit();
uiDoc.ActiveView = viewSection;
Transform tf = Transform.Identity;
tf.BasisX = XYZ.BasisX;
tf.BasisY = XYZ.BasisZ;
tf.BasisZ = XYZ.BasisX;
Transaction ts = new Transaction(doc, "http://greatverve.cnblogs.com");
ts.Start();
Reference refElem = selection.PickObject(ObjectType.Element, "选择");
Element elem = doc.GetElement(refElem);
BoundingBoxXYZ bBox = elem.get_BoundingBox(doc.ActiveView);
ViewSection viewSection = doc.Create.NewViewSection(bBox);
ts.Commit();
uiDoc.ActiveView = viewSection;
Transform tf = Transform.Identity;
tf.BasisX = XYZ.BasisX;
tf.BasisY = XYZ.BasisZ;
tf.BasisZ = XYZ.BasisX;
Revit API创建详图视图,布布扣,bubuko.com
原文:http://www.cnblogs.com/greatverve/p/Revit-API-ViewSection.html
评论(0)
