资源简介
里面有Teigha_NET_3_03相关库文件(TD_Ge_3.03_9.dll,TD_Gi_3.03_9.dll,TD_Gs_3.03_9.dll,TD_Mgd_3.03_9.dll等)以及一系列演示代码(如何读取dwg文件)。
代码片段和文件信息
///////////////////////////////////////////////////////////////////////////////
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 96256 2010-04-29 06:21 Teigha_NET_3_03\bin\AcIdViewObj_3.03_9.tx
文件 64000 2010-04-29 06:21 Teigha_NET_3_03\bin\AsdkSmileyDb_3.03_9.tx
文件 73216 2010-04-29 06:21 Teigha_NET_3_03\bin\AutoSurfServices_3.03_9.tx
文件 169472 2010-04-29 06:21 Teigha_NET_3_03\bin\DbCommands_3.03_9.tx
文件 576000 2010-04-29 06:21 Teigha_NET_3_03\bin\DbConstraints_3.03_9.tx
文件 730112 2010-04-29 06:21 Teigha_NET_3_03\bin\DWFCore.dll
文件 2529792 2010-04-29 06:21 Teigha_NET_3_03\bin\DWFToolkit.dll
文件 658432 2010-04-29 06:21 Teigha_NET_3_03\bin\ExCustObjs_3.03_9.tx
文件 35840 2010-04-29 06:21 Teigha_NET_3_03\bin\ExDynamicBlocks_3.03_9.tx
文件 28672 2010-04-29 06:21 Teigha_NET_3_03\bin\ExEvalWatchers_3.03_9.tx
文件 47104 2010-04-29 06:21 Teigha_NET_3_03\bin\ExFieldEvaluator_3.03_9.tx
文件 22528 2010-04-29 06:21 Teigha_NET_3_03\bin\FileDlgExt_3.03_9.dll
文件 104448 2010-04-29 06:21 Teigha_NET_3_03\bin\GripPoints_3.03_9.tx
文件 100864 2010-04-29 06:21 Teigha_NET_3_03\bin\ModelerGeometry_3.03_9.tx
文件 28160 2010-04-29 06:21 Teigha_NET_3_03\bin\OdBagFiler_3.03_9.tx
文件 40960 2010-04-29 06:21 Teigha_NET_3_03\bin\OdCurveFunctions_3.03_9.tx
文件 20992 2010-04-29 06:21 Teigha_NET_3_03\bin\OdOleItemHandler_3.03_9.tx
文件 25088 2010-04-29 06:21 Teigha_NET_3_03\bin\OpenCadTx_3.03_9.tx
文件 47616 2010-04-29 06:21 Teigha_NET_3_03\bin\PlotSettingsValidator_3.03_9.tx
文件 49664 2010-04-29 06:21 Teigha_NET_3_03\bin\Plotst
文件 25600 2010-04-29 06:21 Teigha_NET_3_03\bin\RasterProcessor_3.03_9.tx
文件 297472 2010-04-29 06:21 Teigha_NET_3_03\bin\RecomputeDimBlock_3.03_9.tx
文件 115200 2010-04-29 06:21 Teigha_NET_3_03\bin\RxRasterServices_3.03_9.tx
文件 637952 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_AcisBuilder_3.03_9.dll
文件 10240 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_Alloc_3.03_9.dll
文件 291328 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_Ave_3.03_9.tx
文件 11776 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_BmpExport_3.03_9.dll
文件 288768 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_BrepRenderer_3.03_9.dll
文件 64512 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_Br_3.03_9.dll
文件 265728 2010-04-29 06:21 Teigha_NET_3_03\bin\TD_DbRoot_3.03_9.dll
............此处省略113个文件信息
评论
共有 条评论