CAD Drawing Dataset properties
Summary
The Describe function returns the following properties for CAD Drawing Datasets. Dataset Properties are also supported.
A CAD Drawing Dataset returns a dataType of "CadDrawingDataset".
Properties
Property | Explanation | Data Type |
is2D (Read Only) |
Indicates whether a CAD dataset is 2D | Boolean |
is3D (Read Only) |
Indicates whether a CAD dataset is 3D | Boolean |
isAutoCAD (Read Only) |
Indicates whether a CAD dataset is an AutoCAD file | Boolean |
isDGN (Read Only) |
Indicates whether a CAD dataset is a MicroStation file | Boolean |
Code Sample
CAD Drawing Dataset properties example (stand-alone script)
The following stand-alone script displays properties for a CAD Drawing Dataset.
import arcpy # Create a describe object # desc = arcpy.Describe("C:/data/arch.dgn") # Print Cad Drawing Dataset properties # print "%-12s %s" % ("is2D:", desc.is2D) print "%-12s %s" % ("is3D:", desc.is3D) print "%-12s %s" % ("isAutoCAD:", desc.isAutoCAD) print "%-12s %s" % ("isDGN:", desc.isDGN)
10/28/2011