Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parts lists

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
GosponZ
344 Views, 2 Replies

Parts lists

Hi

i'm wandering if there is iLogic or vba code to change item numbers into letters in part list table. Our customer require letters and change one by one is kind pain.

Thanks for any adviceITEM2.PNG  ITEM2.PNG

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: GosponZ

Hi

 

the code is not finish but give you a good idea 🙂

 

Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
   ' Set a reference to the first parts list on the active sheet.
' This assumes that a parts list is on the active sheet.
Dim oPartList As PartsList
oPartList = oDrawDoc.ActiveSheet.PartsLists.Item(1)
  ' Iterate through the contents of the parts list.
Dim i As Long
For i = 1 To oPartList.PartsListRows.Count
'look at only the part number column
oCell  = oPartList.PartsListRows.Item(i).Item("ITEM")
'find a specific part number
If oCell.Value = "1" Then
oCell.Value = "A"
End If
Next

 

Message 3 of 3
GosponZ
in reply to: Anonymous

Thanks works well

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report