Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public static List <View> GetViews(ImageExportOptions options)
        {
            var o   = options.InternalImageExportOptions;
            var doc = DocumentManager.Instance.CurrentDBDocument;

            return(o.GetViewsAndSheets().Select(x => doc.GetElement(x).ToDSType(true) as View).ToList());
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="options"></param>
        /// <param name="views"></param>
        /// <returns></returns>
        public static ImageExportOptions SetViewsAndSheets(ImageExportOptions options, List <View> views)
        {
            var o = options.InternalImageExportOptions;

            o.SetViewsAndSheets(views.Select(x => x.InternalElement.Id).ToList());

            return(new ImageExportOptions(o));
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public bool IsValidForSaveToProjectAsImage(ImageExportOptions options)
        {
            var doc = DocumentManager.Instance.CurrentDBDocument;

            return(Autodesk.Revit.DB.ImageExportOptions.IsValidForSaveToProjectAsImage(options.InternalImageExportOptions, doc));
        }