• 大小: 41.89MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-17
  • 语言: 其他
  • 标签: dwg  开源  autocad  

资源简介

如果你想绕过AutoCAD直接打开dwg文件,那么就需要opendwg的这份源码库来了

资源截图

代码片段和文件信息

///////////////////////////////////////////////////////////////////////////////
// Copyright ?2009-2010 Open Design Alliance (the “Alliance“) 
// 
// This software is owned by the Alliance and may only be incorporated into 
// application programs owned by members of the Alliance subject to a signed 
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable 
// trade secrets of the Alliance and its suppliers. The software is also 
// protected by copyright law and international treaty provisions. Application 
// programs incorporating this software must include the following statement 
// with their copyright notices:
//
// Teigha?NET for .dwg files 2009-2010 by Open Design Alliance. All rights reserved.
//
// By use of this software you acknowledge and accept these terms.
//
//
// *DWG is the native and proprietary file format for AutoCAD?and a trademark 
// of Autodesk Inc. The Open Design Alliance is not associated with Autodesk.
///////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Teigha.DatabaseServices;
using Teigha.Geometry;
using Teigha.GraphicsInterface;
using Teigha.Colors;
using Teigha;
// note that Getobject doesn‘t work in Acad 2009 so we use “obsolete“ Open instead
#pragma warning disable 618

namespace OdReadExMgd
{
  class DbDumper
  {
    public DbDumper() { }

    static string toDegreeString(double val)
    {
      return (val * 180.0 / Math.PI) + “d“;
    }
    static string toHexString(int val)
    {
      return string.Format(“0{0:X}“ val);
    }
    static string toArcSymbolTypeString(int val)
    {
      switch (val)
      {
        case 0: return “Precedes text“;
        case 1: return “Above text“;
        case 2: return “None“;
      }
      return “???“;
    }
    /************************************************************************/
    /* Shorten a path with ellipses.                                        */
    /************************************************************************/
    static string shortenPath(string Inpath int maxPath)
    {
      string path = Inpath;
      /**********************************************************************/
      /* If the path fits just return it                                   */
      /**********************************************************************/
      if (path.Length <= maxPath)
      {
        return path;
      }
      /**********************************************************************/
      /* If there‘s no backslash just truncate the path                    */
      /**********************************************************************/
      int lastBackslash = path.LastIndexOf(‘\\‘);
      if (lastBackslash < 0)
      {
        return path.Substri

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     118272  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\AcIdViewObj_3.03_9.tx

     文件      80896  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\AsdkSmileyDb_3.03_9.tx

     文件      86016  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\AutoSurfServices_3.03_9.tx

     文件     230400  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\DbCommands_3.03_9.tx

     文件     764928  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\DbConstraints_3.03_9.tx

     文件     985600  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\DWFCore.dll

     文件    3190784  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\DWFToolkit.dll

     文件     904192  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\ExCustObjs_3.03_9.tx

     文件      48640  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\ExDynamicBlocks_3.03_9.tx

     文件      37376  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\ExEvalWatchers_3.03_9.tx

     文件      64512  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\ExFieldEvaluator_3.03_9.tx

     文件      28160  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\FileDlgExt_3.03_9.dll

     文件     139776  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\GripPoints_3.03_9.tx

     文件     135168  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\ModelerGeometry_3.03_9.tx

     文件      34304  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\OdBagFiler_3.03_9.tx

     文件      50176  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\OdCurveFunctions_3.03_9.tx

     文件      24576  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\OdOleItemHandler_3.03_9.tx

     文件      31232  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\OpenCadTx_3.03_9.tx

     文件      58368  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\PlotSettingsValidator_3.03_9.tx

     文件      62464  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\PlotstyleServices_3.03_9.tx

     文件      33280  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\RasterProcessor_3.03_9.tx

     文件     393216  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\RecomputeDimBlock_3.03_9.tx

     文件     153088  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\RxRasterServices_3.03_9.tx

     文件     846336  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_AcisBuilder_3.03_9.dll

     文件      10240  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_Alloc_3.03_9.dll

     文件     436224  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_Ave_3.03_9.tx

     文件      13312  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_BmpExport_3.03_9.dll

     文件     389120  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_BrepRenderer_3.03_9.dll

     文件      80896  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_Br_3.03_9.dll

     文件     341504  2010-04-29 06:32  DWGdirect.Net_and_ActiveX_3.3.0\TNET64_3_03\Teigha_NET64_3_03\bin\TD_DbRoot_3.03_9.dll

............此处省略259个文件信息

评论

共有 条评论