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
  • Methods
   • About
   • AddAlignedDi...
   • AddBlock
   • AddBlockEntity
   • AddClass
   • AddDimStyle
   • AddEntity
   • AddLayer
   • AddLineType
   • AddObject
   • AddStyle
   • AddUCS
   • AddVertex
   • AddView
   • AddViewPort
   • Clear
   • CoordXtoPixel
   • CoordYtoPixel
   • Copy
   • DisplayView
   • DrawArc
   • DrawCircle
   • DrawEntity
   • DrawLine
   • DrawPoint
   • DrawText
   • ExplodeBlock
   • GetACIColor
   • GetEntity
   • GetRGBColor
   • InvertEntity
   • LoadBlock
   • ModifyEntity
   • NewDrawing
   • Pan
   • PixelXtoCoord
   • PixelYtoCoord
   • Plot
   • PlotPreview
   • PopupMenu
   • ReadDXF
   • ReadDXFBlocks
   • ReadDXFEntities
   • Refresh
   • Regen
   • SaveBMP
   • SaveWMF
   • SetLimits
   • ShowBlock
   • ShowPalette
   • ShowRubberAl...
   • ShowRubberBox
   • ShowRubberCi...
   • ShowRubberLine
   • WriteDXF
   • WriteDXFBlock
   • ZoomExtents
   • ZoomIn
   • ZoomLimits
   • ZoomOut
   • ZoomPicture
   • ZoomPrevious
   • ZoomSpotIn
   • ZoomSpotOut
   • ZoomUser
   • ZoomWindow
  • 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 - GetEntity Method

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
GetEntity Method

Description Returns the number of the nearest entity to the point with x,y coordinates.
Syntax [Value&]=[form.]DXFReader.GetEntity (x As Single, y As Single)
Remarks Use this function to retrieve an entity with a mouse click.

The following code will show the entity type of the nearest entity to the mouse pointer:

Dim EntityNum as Long

Private Sub DXFReader1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

 EntityNum = DXFReader1.GetEntity(X, Y)

 If EntityNum > 0 Then

  MsgBox "Entity type: " + DXFReader1.Entities(EntityNum).EntityType

 End If

End Sub



With this function you can retrieve the entities of the following types:

ARCCIRCLE INSERT LINE
LWPOLYLINE POINT POLYLINE SOLID
TEXT
TRACE
The parameters for the GetEntity method are described below:

ParameterDescription

xX coordinate of the point
yY coordinate of the point

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