Saturday 25 March 2017

To Know Title/File name saved in SolidWorks by Macro (API)

Macro Program

For print / msg of part name by which we saved the part file.

Sub main ( )

Dim swapp As SldWorks.SldWorks
Set swapp = Application.SldWorks

Dim swmodel As ModelDoc2
Set swmodel = swapp.ActiveDoc

filename = swmodel.GetTitle

Msgbox filename

End Sub

No comments:

Post a Comment