Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

viewsheet location revit api

  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 ); 
Comment

get all viewsheet revit api

IEnumerable<ViewSheet> AllSheets = new FilteredElementCollector(doc)
            	.OfClass(typeof(ViewSheet))
            	.OfCategory(BuiltInCategory.OST_Sheets)
            	.Cast<ViewSheet>();
Comment

PREVIOUS NEXT
Code Example
Csharp :: difference between all logging framework .NET Core? 
Csharp :: 7485438 
Csharp :: gridview edit update delete in asp.net textbox size 
Csharp :: log4net.dll 
Csharp :: dotcms contentidentifier 
Csharp :: number to string ef example c# 
Csharp :: regex ip rage detect 
Csharp :: c# switch expression 8.0 
Csharp :: unity next level trigger 
Csharp :: JAJAAJAJAJ 
Csharp :: does Registry.CurrentUser.OpenSubKey create the key if it does not exist? 
Csharp :: Propertychanged is not firing up when text is change 
Csharp :: asp.net razor get list without refresh 
Csharp :: export xml 
Csharp :: join 2 list rows into one row and add totals fields C# 
Csharp :: c# call by reference 
Csharp :: C# read GroupComponent Or PartComponent using regex 
Csharp :: Align String with Spaces [C#] 
Csharp :: c# methods 
Csharp :: death transition unity 2d 
Csharp :: how to write an if statement with two checkboxes in c# 
Csharp :: c# check if object can be cast to type 
Csharp :: Conditional IQueryable Linq extension 
Csharp :: c# check number is odd or even 
Csharp :: c# label continue in new line 
Csharp :: How to compile just one file in c# 
Csharp :: rigidbody velocity 
Csharp :: c# blazor in .net framework 
Csharp :: euler angles to quaternion unity 
Csharp :: C# IEnumerable access element at index 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =