Macro Program
*For find the location you must saved your file.
Sub main ( )
Dim swapp As SldWorks.SldWorks
Set swapp = Application.SldWorks
Dim swmodel As ModelDoc2
Set swmodel = swapp.ActiveDoc
filelocation = swmodel.GetPathName
Msgbox filelocation
End Sub
No comments:
Post a Comment