Does anyone know how to load a .xml external search file of Advanced Component Selection and run it by using the vba macro？
Dim swApp As SldWorks.SldWorks
Dim boolstatus As Boolean
Dim swModel As SldWorks.ModelDoc2
Dim swAssy As SldWorks.AssemblyDoc
Dim swASC As SldWorks.AdvancedSelectionCriteria
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swAssy = swModel
Set swASC = swAssy.GetAdvancedSelection
boolstatus = swASC.LoadCriteria("C:\Query.xml")
Advance component select .. This may help you.
Thanks for your reply, I have read the Advance component select but it doesn't work. Do you have a better idea?
Retrieving data ...