Results 1 to 5 of 5

Thread: CPoint class module

  1. #1
    acrctba Guest

    CPoint class module

    I have a CPoint class module that helps me work with the coordinates of the elements. I don't have to work with arrays. I made something like that:

    ' change the insertion point of an AcadText
    Dim pPoint as CPoint
    pPoint = EGUtil.PointFromArray3d(pText.InsertionPoint)

    ' change coordinates
    pPoint.X = 5 : pPoint.Y = 10: pPoint>X = 0#

    ' save back to original element
    pText.InsertionPoint = EGUtil.Array3dFromPoint(pPoint)

    If anyone has interest in that contacts me.

    Ari C. Raimundo
    Engefoto S/A
    Curitiba-PR-Brazil

  2. #2
    Allen Johnson Guest
    Why not post it?

  3. #3
    acrctba Guest
    It's too big to be posted...

    I can send you by e-mail...
    acrctba@hotmail.com

  4. #4
    acrctba Guest
    Here's the idea:

    Public Function PointToArray3D(ByRef point As CPoint) As Variant
    ' retorna um array de coordenadas 3d Ã* partir de um ponto

    Dim pPoint(0 To 2) As Double

    pPoint(0) = point.X
    pPoint(1) = point.Y
    pPoint(2) = point.Z

    PointToArray3D = pPoint

    End Function

    Public Function Array3DToPoint(ByRef points As Variant) As CPoint
    ' retorna um ponto Ã* partir de um array 3d

    Dim pPoint As New CPoint

    pPoint.X = points(0)
    pPoint.Y = points(1)
    pPoint.Z = points(2)

    Set Array3DToPoint = pPoint

    End Function

  5. #5
    Bobby C. Jones Guest
    You have a class that represents a point and it's too big to be posted???
    I'd love to have a look at it.
    --
    Bobby C. Jones

    "acrctba" <nospam@address.withheld> wrote in message
    news:21831792.1103116767056.JavaMail.jive@jiveforu m2.autodesk.com...
    It's too big to be posted...

    I can send you by e-mail...
    acrctba@hotmail.com

Similar Threads

  1. Replies: 0
    Last Post: 11-08-2005, 01:59 PM
  2. Los Angeles Windward School USFirst CAD Class/Mentor Help
    By WindwardRobotics in forum AutoCAD
    Replies: 0
    Last Post: 11-03-2005, 02:31 PM
  3. EFX Module
    By Doug in forum Pro/Engineer
    Replies: 1
    Last Post: 06-26-2005, 09:10 AM
  4. Utility Module for CPoint class
    By acrctba in forum VBA
    Replies: 0
    Last Post: 01-20-2005, 08:57 AM
  5. CPoint class module
    By acrctba in forum VBA
    Replies: 0
    Last Post: 01-20-2005, 08:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum