资源简介
如果你想绕过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\Plotst
文件 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个文件信息
相关资源
- qbittorrent_4.2.5.12_x64_setup.exe
- 同城聚合平台28.8.0+小程序前端+开源
- 最新GLPI--优秀的linux开源IT资产管理系
- 龙兵开源版本3.99.12。某宝200元购买。
- stm32+UCOS+UCGUI3.98+FATFS综合程序
- (免费)The Architecture of Open Source Ap
- EasyHR易安人力资源管理系统完全开源
-
openla
yers最新版完整API v4.6.5 - 开源FPGA比特比挖矿
- visual lisp开发人员手册
- camerakit开源相机源码
- 一个开源的基于.net的dicom库
- 有限元开源代码GetFEM
- 人脸识别系统 开源技术大作业
-
AutoCAD ob
jectARX(VC)开发基础与教程 - 啦啦外卖跑腿小程序 we7_wmall 18.4全开
- 安卓手机投屏助手源码
- 2018淘宝客微信小程序前端+后端源码开
- ECStore 2.3.8 完全开源版亲自折腾成功版
- 免费好用OACRM的开源源代码
- 最经典的开源车牌识别代码 OPENCV
- Redrain仿酷狗播放器完整源代码
- 嵌入式系统——采用公开源代码和S
- 斯坦福开源CFD SU2 3.2.9版源码
- Auto CAD 2014中文版从入门到精通PDF
- 简单详细,开源的helloChart 图表开发
- Teigha绘画库
- DSmall多商户B2B2C开源商城源码 3.1.1
- AutoCAD 2008 VisualLISP二次开发入门到精通
- AutoCAD 2012电气设计绘图基础入门与范
评论
共有 条评论