Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
MİMucip İlbuğa26/03/2024
Hi,
I want to change all parts in assembly and sub asseblies. I coppied from macro recorder like below;
boolstatus = Part.Extension.SelectByID2("31101022-1@3110105", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
' Rename
longstatus = Part.Extension.RenameDocument("3110102")
I want to get all part names from BOM table. I can get file names easilly but in the code above I need to know ID of the part like "31101022-1@3110105