I have been trying to rename a cutlist item when in a part file... For example once a cutlist is created it has the default name of "Cut-List-Item1" i would like a Macro that can change that name.... i have tried to record the action and it does but once i replay it, it will not change the name... it does however select the correct folder
code i am using but doesn't rename
CODE
Set swApp = Application.SldWorks Set Part = swApp.ActiveDoc Set SelMgr = Part.SelectionManager Part.ClearSelection2 True boolstatus = Part.Extension.SelectByID2("Cut-List-Item1", "SUBWELDFOLDER", 0, 0, 0, True, 0, Nothing, 0) Part. 0, 0, 0, 0, 0, 0, 0, 1, 0, "666"
What is rapid injection molding? For engineers working with tight product design timelines, rapid injection molding can be a critical tool for prototyping and testing functional models. Download Now
As the cloud is increasingly adopted for product development, questions remain as to just how cloud software tools compare to on-premise solutions. Download Now
RE: Weldment Cut-list item rename
CODE
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SelMgr = Part.SelectionManager
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID2("Cut-List-Item1", "SUBWELDFOLDER", 0, 0, 0, False, 0, Nothing, 0)
SelMgr.GetSelectedObject5(1).Name = "NEW NAME"
End Sub