📜  视图表位置 revit api - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:03.204000             🧑  作者: Mango

代码示例1
BoundingBoxXYZ xyzLocation 
    = SelectedView.get_BoundingBox( 
      m_Doc.ActiveView );
 
  // get the outline max and min 
 
  XYZ ptMaxOutline = new XYZ( 
    CorrespondingView.Outline.Max.U, 
    CorrespondingView.Outline.Max.V, 
    0 );
 
  // get the view's origin point's 
  // coordinates in current view sheet. 
 
  UV ptSourceViewOriginInSheet = new UV( 
    xyzLocation.Max.X - ptMaxOutline.X,
    xyzLocation.Max.Y - ptMaxOutline.Y );