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: 

VBA editing PARTNUMBER in Content Center

1 REPLY 1
SOLVED
Reply
Message 1 of 2
capparottoQQZAF
108 Views, 1 Reply

VBA editing PARTNUMBER in Content Center

Hi experts,

I'm trying to change a PARTNUMBER in my CC library in VBA,

See the code below:

-----------------------------------------

Dim index As Double

Dim PARTNUMBER As String
index = 0

For w = 1 To Family.TableRows.Count
PARTNUMBER = "New" + CStr(index)

MsgBox (Family.TableRows(w).Item(2).Value)
Family.TableRows.Item(w).Item(2).Value = PARTNUMBER
MsgBox (Family.TableRows(w).Item(2).Value)
index = index + 1

Next

----------------------------------------

The messages box from VBA are correct.

First message : Old1

Second message: New1

but when I open the Contet Center I find again The PARTNUMBER= Old1

 

Could you help me?

Thanks

 

 

1 REPLY 1
Message 2 of 2

I forget Family.Save

Now all is working

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report