Пример #1
0
        /// <summary>
        /// Get the absolute path of the linked DWG file (ver.2010 or below)
        /// </summary>
        public static string GetCADPath(UIDocument uidoc, ImportInstance import)
        {
            Document doc = uidoc.Document;
            //Element ele = import as ImportInstance;
            CADLinkType cadLinkType = doc.GetElement(import.GetTypeId()) as CADLinkType;

            return(ModelPathUtils.ConvertModelPathToUserVisiblePath(cadLinkType.GetExternalFileReference().GetAbsolutePath()));
        }
 public RevitImportInstanceStringer(ImportInstance revitImportInstance, Document doc)
 {
     revitImport  = revitImportInstance;
     stringerText = doc.GetElement(revitImport.GetTypeId()).Name;
 }