Kadmos.com


?>

  Home | Products | Download | Purchase | Support | Language

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 - Layers Property

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
Layers Property

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

The methods of the Layers collection are:
CountCounts the defined Layers
RemoveRemoves a Layer object from the Layers collection

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

Dim NLayers As Long

NLayers = DXFReader1.Layers.Count

To remove a Layer object, for example the first, from the Layers collection use the following code:

DXFReader1.Layers.Remove (1)

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

PropertyData TypeDescription

LayerName String Layer name.
Handle String Handle
Frozen Boolean True if layer is frozen.
Flag Integer Standard flags. In addition to the standard flags, the following values apply to layers (bit-coded values): 1 = Layer is frozen, otherwise layer is thawed; 2 = Layer is frozen by default in new viewports.
LayerOn Boolean True if layer is on.
LineType String LineType name.
Color Integer Color number (if negative, layer is Off).


The code below lists the contents of the LAYER table of e DXF file:

Dim Layer as DXFReaderLayer

With DXFReader1

 For Each Layer In .Layers

  Printer.Print Layer.LayerName

 Next Layer

End With
Data Type Collection

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