Revit API创建详图视图
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;
我这个博客废弃不用了,今天想寻找外链的时候,突然想到这个博客权重很高。
有需要免费外链的,留言即可,我准备把这个博客变成免费的友情链接站点。