+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Junior Member
    Using
    not specified
    Join Date
    Aug 2005
    Posts
    20

    Default how extract coodenates acadtext

    Registered forum members do not see this ad.

    Hello people:
    I hava a problem with extract corrdenates the a acadobject.
    I have next example:

    dim objTexto as AcadText
    dim point( 0 to 2) as Double

    point=objTexto.TextAlignmentPoint

    But this is not right, anyone know make this??, thanx!!

  2. #2
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,639

    Default Re: how extract coodenates acadtext

    Quote Originally Posted by jandres
    Hello people:
    I hava a problem with extract corrdenates the a acadobject.
    I have next example:

    dim objTexto as AcadText
    dim point( 0 to 2) as Double

    point=objTexto.TextAlignmentPoint

    But this is not right, anyone know make this??, thanx!!
    Do not use dim point( 0 to 2) as Double

    Use Dim point As Variant

    If you look at the documentation on TextAlignmentPoint, you will see that it returns a Variant.

  3. #3
    Junior Member
    Using
    not specified
    Join Date
    Aug 2005
    Posts
    20

    Default Re: how extract coodenates acadtext

    Quote Originally Posted by rkmcswain
    Quote Originally Posted by jandres
    Hello people:
    I hava a problem with extract corrdenates the a acadobject.
    I have next example:

    dim objTexto as AcadText
    dim point( 0 to 2) as Double

    point=objTexto.TextAlignmentPoint

    But this is not right, anyone know make this??, thanx!!
    Do not use dim point( 0 to 2) as Double

    Use Dim point As Variant

    If you look at the documentation on TextAlignmentPoint, you will see that it returns a Variant.
    that not problem:
    dim Point as Variant
    Point = objTextoEmpalme.TextAlignmentPoint(1)

    This return 0....????

  4. #4
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,639

    Default Re: how extract coodenates acadtext

    Quote Originally Posted by jandres

    that not problem:
    dim Point as Variant
    Point = objTextoEmpalme.TextAlignmentPoint(1)

    This return 0....????
    Did you read all the documentation on TextAlignmentPoint ?

    If the Alignment property is set to "acAlignmentLeft", then TextAlignmentPoint will return 0. Is this your case?

    There are also other items that affect the returned value of this property. Read the "Remarks" section.

  5. #5
    Junior Member
    Using
    not specified
    Join Date
    Aug 2005
    Posts
    20

    Default Re: how extract coodenates acadtext

    Registered forum members do not see this ad.

    Quote Originally Posted by rkmcswain
    Quote Originally Posted by jandres

    that not problem:
    dim Point as Variant
    Point = objTextoEmpalme.TextAlignmentPoint(1)

    This return 0....????
    Did you read all the documentation on TextAlignmentPoint ?

    If the Alignment property is set to "acAlignmentLeft", then TextAlignmentPoint will return 0. Is this your case?

    There are also other items that affect the returned value of this property. Read the "Remarks" section.
    I not sure, but writte this after call alignamentpoint:
    objTexto.Alignment = acAlignmentRight
    MsgBox objTexto.TextAlignmentPoint(0)

    this return 0,thanx

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts