open SolidWorks.Interop.sldworks
let cmdConnect (swApp: ISldWorks) =
swApp.SendMsgToUser $"RevisionNumber:{swApp.RevisionNumber}"
swApp.DisplayStatusBar true
swApp.SendMsgToUser $"DisplayStatusBar Ok!"
let lang = swApp.GetCurrentLanguage()
swApp.SendMsgToUser $"SOLIDWORKS is currently using the {lang} language."
标签:swApp,solidworks,ch02,api,SendMsgToUser,RevisionNumber
From: https://www.cnblogs.com/cuishengli/p/17523172.html