Ejemplo n.º 1
0
        public static DxfModel Read(string filename, out DxfMessageCollection messagesReturn)
        {
            string   extension = Path.GetExtension(filename);
            DxfModel dxfModel;

            if (string.Compare(extension, ".dwg", StringComparison.InvariantCultureIgnoreCase) == 0)
            {
                dxfModel = DwgReader.Read(filename, (ProgressEventHandler)null, out messagesReturn);
            }
            else if (string.Compare(extension, ".dxf", StringComparison.InvariantCultureIgnoreCase) == 0)
            {
                dxfModel = DxfReader.Read(filename, (ProgressEventHandler)null, out messagesReturn);
            }
            else
            {
                if (string.Compare(extension, ".gz", StringComparison.InvariantCultureIgnoreCase) != 0 && string.Compare(extension, ".zip", StringComparison.InvariantCultureIgnoreCase) != 0)
                {
                    throw new ArgumentException("Unknown extension " + extension + ", it must be either .dxf or .dwg.");
                }
                dxfModel = DxfReader.Read(filename, (ProgressEventHandler)null, out messagesReturn);
            }
            return(dxfModel);
        }
Ejemplo n.º 2
0
 public Class279(DxfSortEntsTable obj, DxfMessageCollection messages)
     : base((DxfObject)obj)
 {
     this.dxfMessageCollection_0 = messages;
 }
Ejemplo n.º 3
0
 public Class376(DxfModel model, DxfMessageCollection messages)
     : base(model, messages)
 {
 }