×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

position between any drawingtext

position between any drawingtext

position between any drawingtext

(OP)
hi freind,

if it's possible can you help me?

I was creat one drawing when i put lot of drawingtext. I give a position in X for all drawingtext, but in Y i went put the same space between a drawing text.



Set drawingDocument1 = CATIA.ActiveDocument

Set drawingSheets1 = drawingDocument1.Sheets

Set drawingSheet1 = drawingSheets1.Item("plan...")

Set drawingViews1 = drawingSheet1.Views

Set layout2DView1 = drawingViews1.Item("Composant 2D.2")

Set drawingPictures1 = layout2DView1.Pictures

Set drawingDocument1 = CATIA.ActiveDocument

Set parameters1 = drawingDocument1.Parameters

Set strParam1 = parameters1.Item("Chaîne.31")

Set drawingPicture1 = drawingPictures1.Item("Image.7")
Set drawingPicture2 = drawingPictures1.Item("Image.5")



set octextinit=layout2DView1.Texts
set octextinit1=layout2DView1.Texts


for k=1 to octextinit.count
for k=2 to octextinit1.count +1

Set oTextinit = octextinit1.item(k)
Set oTextinit = octextinit.item(k)

oTextinit.X = 945

oTextinit.Y = oTextinit.Y +5


next



Set ocText2 = layout2DView1.Texts

For j = 1 To ocText2.Count

Set oText2 = ocText2.item(j)

If oText2.Text = "THREADS AND AREA NOT PAINTED" Then

oText2.X=966

drawingPicture2.X = oText2.X-20

drawingPicture2.Y = oText2.Y-12


End If
next

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources