Architectuur H EtN Ieuw EInstituut
Total Page:16
File Type:pdf, Size:1020Kb
Design Architectuur Apreservationpolicyfor theAutoCADDWG/DXF Instituut fileformat author HenkVanstappen (DATABLE) Nieuwe date 34 12December2019 Het Cultuur Digitale Contents 1. Introduction 3 2. AutodeskDWG/DXFfileformat 4 2.1. AutoCADmodel 4 2.1.1. Modelkernel 4 2.1.2. Externalreferences 4 2.1.3. Metadata 5 2.1.4. Versionsandcompatibility 6 2.2. DWGfileformat 6 2.2.1. Fileformatspecification 6 2.2.2. FileStructure 6 2.2.3. Identification 7 2.2.4. InternalvalidationofaCADformat 7 2.3. DXFfileformat 8 2.3.1. Filestructure 8 2.3.2. Identification 9 2.4. CADSoftwareforDWG/DXF 9 2.4.1. AutoCAD 9 2.4.2. AutoCADexportformats 10 2.4.3. ProprietaryapplicationsforDWG/DXF 12 2.4.4. OpensourceapplicationsforDWG/DXF 12 2.5. SoftwarelibrariesforDWG/DXF 12 2.5.1. RealDWG 12 2.5.2. DWGDirect 13 2.5.3. OpenSourcelibraries 13 2.6. DWG/DXFViewersandconverters 13 2.7. Preservationrisks 14 3. PreservationStrategiesforAutocadDWG/DXF 16 4. Conclusion:TowardsaDWGfileformatpolicy 18 4.1. Pre-ingest 18 4.1.1. Technologypreservation 18 A preservation policy for the AutoCAD DWG/DXF AutoCAD the for policy format file A preservation 4.1.2. Dealingwithxrefs 18 4.1.3. Normalizationscenario’s 19 4.1.4. Normalizationtooling 20 4.1.5. Normalizationvalidation 21 4.2. Ingest 20 4.2.1. Formatidentification 20 4.2.2. Formatvalidation 21 4.2.3. Metadataextraction 21 4.3. Preservationplanning 22 4.4. Access 22 4.4.1. CreateDIP’s 22 4.4.2. Emulation 23 4.5. Technologywatch 23 5. Resources 24 1 6. Addenda 27 6.1. AutoCADsoftwarehistory 27 6.2. Fileformathistory 29 6.3. DWGmagicnumbers 30 6.4. DWGandDXFfileformatspecificationsinPRONOM 31 A preservation policy for the AutoCAD DWG/DXF AutoCAD the for policy format file A preservation ThisdocumentislicensedundertheAttribution-ShareAlike4.0Unported(CCBY- SA4.0)license.Copyrightmayapplyonthirdpartyimages. 2 1. Introduction HetNieuweInstituutinRotterdamisaninstituteforarchitecture,designand digitalculture.ItisthekeeperoftheStateownedCollectionofDutchArchitecture andCityPlanning. HetNieuweInstituutaimstoacquire,select,preserveandmakeaccessible archivesinareasonedmannerwithinitscollectionpolicy,acquisitionpolicyand Preservationpolicy.In2019,HetNieuweInstituutstartedtestinganddeveloping adigitalarchivefacility.Thefirsttestsforsettingupafileformatpolicyalsotake placewithinthisframework.Ultimately,HetNieuweInstituutmusthaveastrategy forfunctionalpreservation(migration,emulation).Inthiscontext,choiceswill havetobemadewithintheframeworkofthePreservationPolicywithregardto thepreservationofessentialcharacteristicsoftheinformationobjects. PracticalexperienceandpreviousanalysisshowedthatAutoCADDrawing(DWG) isusedveryfrequentlywithinthearchitecturaldesignprocessandasan exchangeformatbetweendifferentCADapplications.Duetothefrequentuse andthehighheritagevalue,HetNieuweInstituutwantstodevelopapolicywith regardtothisformat.BasedontheacquiredknowledgeabouttheDWGfile formatandtheAutoCADsoftware,HetNieuweInstituutwantsto: – haveastudycarriedoutintothesustainabilityrisksassociatedwithfilesin theDWGfileformat; – haveananalysiscarriedoutwithregardtoconsequencesforthe preservationstrategythatHetNieuweInstituutdevelops; – obtainconclusionsandadviceonamigrationstrategytobeestablished towardssustainablefileformatsforDWGfiles. SustainabilityrisksofCADfilesingeneralhavealreadybeendescribedin previousstudies.Concreteguidelines(fileformatpolicies)thattakeintoaccount therequirementsofthearchivingorganization-suchasdeterminingthe significantpropertiesandtheconsequencesthishaswithregardtothemigration strategy,however,werelacking. A preservation policy for the AutoCAD DWG/DXF AutoCAD the for policy format file A preservation Thisstudyattemptstofulfilthisneedand–basedonresearchoftheDWG/ DXFfileformat–givesanumberofcomponentsofafileformatpolicyforthe AutoCADfileformat,takingintoaccounttheglobalpreservationstrategyof HetNieuweInstituutandthepresentorexistinginfrastructuretobedeveloped. 3 2. AutodeskDWG/DXFfileformat 2.1. AutoCADmodel TheAutoCADmodel,asitisdefinedinaDWGfileanditsdependencies,holds allthesignificantpropertiesthatcanbeselectedforretentioninfunctionofthe designatedcommunity. 2.1.1. Modelkernel CADsoftwareuseshighlycomplexmathematicaltechniquestodefineandrender threedimensionalmodelsandtheirproperties.Examplesofthesetechniques areB-splineorNURBSequations,non-parametricequations,orcombinations ofboth.AsSmith(2009)putsit,CADfilesdonotdescribeashapeassuch,but givearecipeofhowtheshapeshouldbebuilt.ThewayinwhichtheCAD softwarecandescribeashapeislargelydeterminedbythesoftwarekernelthat isused.Translating3Dmodelsintoaformatthatdependsonanotherkernel thereforerunsagreaterriskoferrors.AutoCADisbasedontheShapeManager kernel,whichwasforkedfromtheACISkernelversion7in2001(Strong,2019).1 Strong(2019)thereforestatesasaruleofthumbthatconversionstoanother formatarelesslikelytocauseerrorswhenthetargetformatisbasedonthe samekernel.Errors(orartifacts)thatcanoccurwhentransformingtoanother kernelaresliveredges,zero-areafaces,duplicateverticesandsoon(illustration). Sliverfacesafterconversion2 A preservation policy for the AutoCAD DWG/DXF AutoCAD the for policy format file A preservation TheAutoCADkernelsupportsBreporborderrepresentation.Brepconcernsthe boundarybetweenfixedandnon-fixedgeometry,wherethefixedgeometryisa setofinterconnectedsurfaces.Thisisamathematicallypreciserepresentationof geometry.TheoppositeofBrepisreferredtoasVrep(visualrepresentation),which offersonlyanapproximationofgeometry.AutocADDWGalsosupportsVrep.3 2.1.2. Externalreferences InAutoCADausercaninsertanydrawingfileasanexternalreferenceorxref inthecurrentdrawing.Withxrefs,changesmadeinthereferenceddrawingare reflectedinthecurrentdrawing.Attachedxrefsarelinkedto,butnotactually 1OthercommonformatsareParasolid(e.g.MicroStation),SMLibofCGM. 2Imagefromhttps://www.engineersrule.com/advanced-breakdown-features-solidworks-fillet-tool/ 4 3VrepformatsincludeObj,STL,3DXML,3DPDF,Collada(.dae)andPLY. insertedin,anotherdrawing.Anychangestoareferenceddrawingaredisplayed inthecurrentdrawingwhenitisopenedorreloaded.Adrawingfilecanbe attachedasanxreftomultipledrawingsatthesametime.Conversely,multiple drawingscanbeattachedasreferenceddrawingstoasingledrawing(Autodesk KnowledgeNetwork,2019).Inmanycases,adrawinginthe.DWGformatwill beaddedasareference.However,itisalsopossibletouseotherfileformats: – Image:Imagessuchas:.BMP,.JPG,.PNG,.TIFF,etc. – DWF:theDesignWebFormat:.DWF,.DWFX. – DGN:theMicrostationfileformat. – PDF:theAdobePortableFormatdocumentformat. – PointCloud:.RCPand.RCSfiles. – CoordinationModel:.NWDand.NWCfilesfromNavisworks. Xrefsareidentifiedwithabsoluteorrelativepaths.Anabsolutepathisafully specifiedhierarchyoffoldersthatlocatestheexternalreference.Anabsolute pathincludesthelocalharddriveletterorthenetworkserverdriveletter.Relative pathsarepartiallyspecifiedfolderpathsthatassumethecurrentdriveletteror thefolderofthehostdrawing.Thisisthemostflexibleoption,andenablesyou tomoveasetofdrawingsfromyourcurrentdrivetoadifferentdrivethatusesthe samefolderstructure.XrefscanbeembeddedinaDWGfileasseparatelayers withthebindingfunction.ABlockisaseparatedrawinginsertedintothecurrent drawingasacompleteentity.Changesmadetotheoriginalblockwillnot translatetocurrentdrawing. 2.1.3. Metadata Metadata(alsocalledProductManufacturingInformationorPMI)referstodata suchasGeometricdimensioningandtolerancing(GD&T),dimensions,andnotes whichareattachedtothesolidmodel(Strong,2019).Dataextractionisthe abilitytoextractdatafromobjectsinyourdrawingormultipledrawings.AutoCAD providesaDataExtractionWizardthatcontrolstheextractionofthatdata (illustration). A preservation policy for the AutoCAD DWG/DXF AutoCAD the for policy format file A preservation AutoCADdataextractionwizard 5 2.1.4. Versionsandcompatibility Likemostsoftware,newversionsofAutoCADareregularlyreleased,whichalso supportfunctionalities.Tosupportthesechanges,updatesofthecorresponding fileformatarealsomadeonaregularbasis.SinceAutoCADversion2000, AutodeskchangesitsDWGfileformatafterthreeversions.However,from2013, AutodeskdecidedtokeepthesameDWGformat(AC1027)for5versions,until AutoCAD2018(AC1032). AutoCADisbackwardscompatible,meaningfilescreatedinanyreleasecanbe openedandeditedinthesameoranylaterrelease.Thesoftwareisnotforward compatible,butAutoCADsupportstheconversiontoolderformatversions.