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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA Macro: algorithm 1

Status
Not open for further replies.

elmundo777

Automotive
Joined
Jun 23, 2020
Messages
93
Location
BY
Hello. I need help with creating algorithm.
I'm trying to assign names to CATIA tree elements from table rows. See pictures:

Tree:
tree_kyn9nk.png


Table:
table_gpfpsd.png



I have an idea how it should look roughly in pseudocode, but I don't have enough knowledge to implement it. (vb.net language or catscript\c#\vba. does not matter).
Cycles in pseudocode:
For i = 1 to catia.docs.count
For Z = 0 To DataGridview.Rows.Count - 2
Dim nameRename As String = DataGridview.Rows(Z).Cells(0).Value
item(i).name = nameRename


How to implement it correctly?
Thanks!
 
To use send to i need px1 license
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top