Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Jun 23, 2020
93
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!
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor