• progeCAD in French Language
  • progeCAD in Spanish Language
  • progeCAD in English Language
Home > Support > GetCorner method example 

GetCorner method example

GetCorner method example

GetCorner method example

Private Sub GetCornerExample()

' This example gets the corner data for any 3dFace objects.

     Dim ents As progeCAD.Entities

     Dim ent As Object

     Dim FaceCorner As Point

          

     Set ents = ActiveDocument.Entities

     For Each ent In ents

          Select Case ent.EntityType

               Case Icad3dFace

               Set FaceCorner = ent.GetCorner(3)

               MsgBox "The coordinates for the third corner are: " & Chr(13) & "x = " & FaceCorner.x & Chr(13) & "y = " & FaceCorner.y & Chr(13) & "z = " & FaceCorner.z

          End Select

     Next ent

End Sub

 
DWG is the native file format for Autodesk AutoCAD®. Autodesk and AutoCAD are registered trademarks or trademarks of Autodesk, Inc. in the USA and/or other countries. progeSOFT and progeCAD are registered trademarks or trademarks of progeCAD s.r.l. in the USA and/or other countries.