Thank you
I succeeded thanks to an open forum topic, if that helps:
Dim swApp As SldWorks.SldWorks
Dim swModel As ModelDoc2
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
'Check and Add/Update PartNo Property
If swModel.CustomInfo("_ToolingNo") = "" Then
swModel.AddCustomInfo2 "_ToolingNo", swCustomInfoText, Left(swModel.GetTitle, 7)
Else
swModel.CustomInfo("_ToolingNo") = Left(swModel.GetTitle, 7)
End If
'Check and Add/Update Revision Property
If swModel.CustomInfo("_Position") = "" Then
swModel.AddCustomInfo2 "_Position", swCustomInfoText, Mid(swModel.GetTitle, 9, 5)
Else
swModel.CustomInfo("_Position") = Mid(swModel.GetTitle, 9, 5)
End If
'Check and Add/Update Description Property
If swModel.CustomInfo("Revision") = "" Then
swModel.AddCustomInfo2 "Revision", swCustomInfoText, Mid(swModel.GetTitle, 15, 2)
Else
swModel.CustomInfo("Revision") = Mid(swModel.GetTitle, 15, 2)
End If
End Sub