Hi, everyone!
Do you know the API that checks the reference setting before macro execution?
I want to run swb.(by C#, API(RunMacro2))
but, the necessary reference setting is not checked.
◯(I want to check its.)
×(RunMacro2(~.swb, ...))
(swb⇒swp When converting and checking references)
Do you know the API that checks the reference setting before macro execution?
I thought it could be done with this API, but it does not work.
「_swApp.ISetUserTypeLibReferences(1, "C:/Program Files/SOLIDWORKS Corp/SOLIDWORKS/sldworks.tlb");」←Add
「_swApp.ISetUserTypeLibReferences(2, "C:/Program Files/SOLIDWORKS Corp/SOLIDWORKS/swconst.tlb");」←Add
「bool res = _swApp.RunMacro2(Path.Combine("C:/Users/katomai/Desktop/", _controlName+"swp"), _controlName, "main", (int)swRunMacroOption_e.swRunMacroDefault, out iErr);」
Thanks for watching. I am grateful.
SolidworksApi/macros