Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

position between any drawingtext

Status
Not open for further replies.

hehe1990

Computer
Joined
Mar 10, 2015
Messages
1
Location
FR
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top