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

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
ViewPorts Property

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

The methods of the ViewPorts collection are:
CountCounts the defined ViewPorts
RemoveRemoves a ViewPort object from the ViewPorts collection

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

Dim NViewPorts As Long

NViewPorts = DXFReader1.ViewPorts.Count

To remove a ViewPort object, for example the first, from the ViewPorts collection use the following code:

DXFReader1.ViewPorts.Remove (1)

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

PropertyData TypeDescription

ViewWidth Single View width
Handle String Handle
ViewPortName String Viewport name
Xl Single Lower-left corner X coordinate of viewport
Yl Single Lower-left corner Y coordinate of viewport
Xr Single Upper-right corner X coordinate of viewport
Yr Single Upper-right corner Y coordinate of viewport
Xc Single View center point X coordinate
Yc Single View center point X coordinate
SnapBasePointX Single Snap base point X coordinate
SnapBasePointY Single Snap base point Y coordinate
SnapSpacingX Single Snap spacing X coordinate
SnapSpacingY Single Snap spacing Y coordinate
GridSpacingX Single Grid spacing X
GridSpacingY Single Grid spacing Y
ViewDirectionX Single View direction from target point X coordinate
ViewDirectionY Single View direction from target point Y coordinate
ViewDirectionZ Single View direction from target point Z coordinate
ViewTargetX Single View target point X coordinate
ViewTargetY Single View target point Y coordinate
ViewTargetZ Single View target point Z coordinate
ViewHeight Single View height
ViewPortAspectRatio Single Viewport aspect ratio
LensLength Single Lens focal length
FrontClippingPlane Single Front clipping plane (offset from target point)
BackClippingPlane Single Back clipping plane (offset from target point)
SnapRotationAngle Single Snap rotation angle
ViewTwistAngle Single View twist angle
ViewMode Integer View mode (see VIEWMODE system variable)
CircleZoomPercent Integer Circle zoom percent
FastZoomSetting Integer Fast zoom setting
UCSICONSetting Integer UCSICON setting
SnapOnOff Integer Snap on/off: 1= On, 0=Off
GridOnOff Integer Grid on/off: 1= On, 0=Off\r\n
SNAPSTYLE Integer Snap style
SNAPISOPAIR Integer Snap isopair
Flag Integer Standard flag values


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

Dim ViewPort as Object

With DXFReader1

 For Each ViewPort In .ViewPorts

  Printer.Print ViewPort.ViewPortName

 Next ViewPort

End With
Data Type Collection

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