Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I get the coordinates of the text block (TextFrame) help me please!

New Here ,
Mar 22, 2011 Mar 22, 2011

Dim myApp As New Illustrator.Application
Dim myDoc As Illustrator.Document
myDoc = myApp.ActiveDocument
Dim textRef = myDoc.TextFrames.Add


For Each ArtPageItems In myDoc.PageItems


If TypeName(ArtPageItems) = "TextFrame" Then

'========It is necessary to obtain the coordinates of the text block and move closer to the object (ie the text)============

Else
End If
Next

TOPICS
Scripting
623
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 23, 2011 Mar 23, 2011

to get the the coordinates do

If TypeName(ArtPageItems) = "TextFrame" Then

     x = ArtPageItems.Left

     y = ArtPageItems.Top

Else

Translate
Adobe
Community Expert ,
Mar 23, 2011 Mar 23, 2011

to get the the coordinates do

If TypeName(ArtPageItems) = "TextFrame" Then

     x = ArtPageItems.Left

     y = ArtPageItems.Top

Else

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2011 Mar 23, 2011

Thank you for your reply.
Tell me please, but as you can get closer to an object knowing its coordinates.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2011 Mar 23, 2011
LATEST

Hi Todd, you're welcome, please explain better, I don't understand the question.

are you trying to "move" a textframe (Dim textRef = myDoc.TextFrames.Add) closer to other text frames? or do you want to "zoom" to this textframe?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines