I need a method to get a components ModelDoc2 when all I have is the Model's Path name, and part name. Most things I have seen fully open the document but I just need it in the form of ModelDoc2
Any help is appreciated
Function IGetOpenDocumentByName2(DocumentName As String) As ModelDoc2
I am creating a list of properties in excel for every unique part in an assembly. The reason for this is because sometimes we have 300 of the same bolt so I dont want to use GetComponents. Originally, I created a BOM and used each row. But with giant assemblies, this takes time. Now im going to use
vDepend = swApp.GetDocumentDependencies2(swModel.GetPathName, True, True, False)
You probably want to use the Sw Document Manager to do this. The SWDM can work with SW docs without loading them into SW.
How do I access swDocumentManager?
Could you post an example or a link to a source of this?
Nvm, found it. I will get back to you
Retrieving data ...