예제 #1
0
 /// <summary>
 /// Create a View from a user selected Element.
 /// </summary>
 /// <param name="pt"></param>
 /// <param name="isRevitOwned"></param>
 /// <returns></returns>
 internal static DraftingView FromExisting(Autodesk.Revit.DB.ViewDrafting view, bool isRevitOwned)
 {
     return(new DraftingView(view)
     {
         IsRevitOwned = isRevitOwned
     });
 }
예제 #2
0
 public static DraftingView Wrap(Autodesk.Revit.DB.ViewDrafting view, bool isRevitOwned)
 {
     return(DraftingView.FromExisting(view, isRevitOwned));
 }
예제 #3
0
 /// <summary>
 /// Set the InternalViewDrafting property and the associated element id and unique id
 /// </summary>
 /// <param name="floor"></param>
 private void InternalSetDraftingView(Autodesk.Revit.DB.ViewDrafting floor)
 {
     this.InternalViewDrafting = floor;
     this.InternalElementId    = floor.Id;
     this.InternalUniqueId     = floor.UniqueId;
 }
예제 #4
0
 /// <summary>
 /// Private constructor
 /// </summary>
 private DraftingView(Autodesk.Revit.DB.ViewDrafting view)
 {
     InternalSetDraftingView(view);
 }
예제 #5
0
 /// <summary>
 /// Private constructor
 /// </summary>
 private DraftingView(Autodesk.Revit.DB.ViewDrafting view)
 {
     SafeInit(() => InitDraftingView(view));
 }