Kadmos.com

  Home | Products | Download | Purchase | Support | Language

Google
Search site:

Products
DXFReader ActiveX Control
 • DXF Files Overview
 • Distribution
 • Installation
 • Quick Start
 • Control Summary
 • Download
 • Buy now!
 • DXFReader Reference
  • Properties
   • ACADVersion
   • AppID
   • AppIDs
   • AutoRedraw
   • AxesColor
   • BackColor
   • BaseX
   • BaseY
   • Block
   • BlockRecord
   • BlockRecords
   • Blocks
   • BorderStyle
   • Class
   • Classes
   • CurrentColor
   • CurrentEleva...
   • CurrentLayer
   • CurrentLineType
   • CurrentTextS...
   • CurrentThick...
   • DateCreated
   • DateLastEdited
   • DIMSTYLEc
   • DimStyles
   • DisplayAspec...
   • DrawingComment
   • DrawMode
   • Enabled
   • Entities
   • Entity
   • FileName
   • FileStatus
   • Font
   • ForeColor
   • GridColor
   • hDC
   • Layer
   • Layers
   • LineType
   • LineTypes
   • MaxX
   • MaxY
   • MinX
   • MinY
   • MouseIcon
   • MousePointer
   • Obj
   • Objects
   • PaletteButto...
   • PaletteCance...
   • PaletteCaption
   • PaletteOkBut...
   • PaletteWindo...
   • PaletteWindo...
   • PaletteWindo...
   • Picture
   • PictureBaseX
   • PictureBaseY
   • PictureHeight
   • PictureScale...
   • PictureScaleX
   • PictureScaleY
   • PictureWidth
   • PlotAspectRatio
   • PlotDocument...
   • PlotMarginBo...
   • PlotMarginLeft
   • PlotMarginRight
   • PlotMarginTop
   • PlotMode
   • PlotOriginX
   • PlotOriginY
   • PlotPenWidth
   • PlotRendering
   • PlotRotation
   • PlotScale
   • RotationAngle
   • ScaleX
   • ScaleY
   • ScrollBars
   • ShowAxes
   • ShowBasePoint
   • ShowGrid
   • ShowLimits
   • ShowPlotMargins
   • Style
   • Styles
   • ToolTipText
   • TotalEditTime
   • TotalEditTim...
   • TranslationX
   • TranslationY
   • UCS
   • UCSs
   • UserTimer
   • UserTimerDays
   • Version
   • View
   • ViewPort
   • ViewPortMaxX
   • ViewPortMaxY
   • ViewPortMinX
   • ViewPortMinY
   • ViewPorts
   • Views
   • ZoomInOutPer...
Hidden Properties
  • Methods
  • Events

 • DXFPlot Reference

IXF ActiveX Control

Postel ActiveX Control

Tech Support
OnLine Support
Phone Support
Sample Code
Registered Users
FAQ
References
Kadmos
Contact Kadmos
Environment
Customer List
Newsletter
Download
ActiveX Controls
Updates
Purchase
Price List
International Resellers
Our Guarantee
Shipment Options
Payment Options
Shopping Cart
    DXFReader Control - Classes Property

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
Classes Property

Description Returns a reference to a collection of "Class" objects. Each object corresponds to an entry of the Classes section (CLASSES) of the DXF file.
Syntax
Visual Basic
[form.]DXFReader.Classes
Visual C++ C_Collection DXFReader.GetClasses();
Delphi property Classes: _Collection;
C# VBA.Collection DXFReader.Classes;
Remarks Use the Classes collection to retrieve or remove an individual Class object.

The methods of the Classes collection are:
CountCounts the defined Classes
RemoveRemoves a Class object from the Classes collection

To count all the objects of the Classes collection use the following code:

Dim NClasses As Long

NClasses = DXFReader1.Classes.Count

To remove a Class object, for example the first, from the Classes collection use the following code:

DXFReader1.Classes.Remove (1)

All of the properties for the Class object are listed in the following table:

PropertyData TypeDescription

InstanceCount Integer
RecordName String Class DXF record name. These should always be unique.
CppClassName String C++ class name. Used to bind with software that defines object class behavior. These are always unique.
ApplicationName String Application name
ProxyFlags Long Proxy capabilities flag. Bit coded value that indicates the capabilities of this object as a proxy.
WasAProxyFlag Integer Was-a-proxy flag. Set to 1 if class was not loaded when this DXF file was created, and 0 otherwise.
IsAnEntityFlag Integer Is-an-entity flag. Set to 1 if class was derived from the AcDbEntity class and can reside in the BLOCKS or ENTITIES section. If 0, instances may appear only in the OBJECTS section.


The code below lists the contents of the CLASSES section of e DXF file:

Dim Class as Object

With DXFReader1

 For Each Class In .Classes

  Printer.Print Class.RecordName

 Next Class

End With


See also the AddClass method.
Data Type Collection

Copyright © 2008 Kadmos.com - All rights reserved. Privacy Policy