List of simulation bolt connectors in a subfolder

Hello

I'm doing a vba macro on SW simulation 2023.
I'm looking to retrieve the list of connectors, bolts or screws contained in a subfolder "Bolt Group 1" for example.
I get the list of connectors and other charges included in the study but I can't get the files and sub-files of the study.
Thank you for your help

Hello

I don't use the simulation API but wouldn't the basic SW API to scan the construction tree solve the problem?

1 Like

Hello

I tried to explore this option in the help but I can't recover the folders of an assembly.
As far as the files of a simulation study are concerned, I think it is accessible from another Interface but I can't find it. I tried to reach folders in these different objects:

    Dim ActDoc As CosmosWorkslib.CWModelDoc
    Dim StudyMngr As CosmosWorkslib.CWStudyManager
    Dim Study As CosmosWorkslib.CWStudy

But nothing found

Hello;

Here are probably a few leads:
https://help.solidworks.com/2022/English/api/swsimulationapi/Create_and_Edit_Bolt_and_Pin_Connectors_Example_VB.htm

or more generally:
https://help.solidworks.com/2021/english/api/swsimulationapi/solidworks.interop.cosworks~solidworks.interop.cosworks.icwboltconnector_members.html

… In short, I didn't find much either.

Kind regards.

1 Like

Otherwise here is a link to list the feature manager to see if you find the folders.

On the other hand, Solidworks strangely manages the folders in this tree, see the last 3 posts of this topic to better understand:


And the topic was this:

Thank you Maclane,

These are the examples I followed to retrieve the list of Connector Bolts but they don't mention the folders and folders in which they are created.
I wonder if everything is accessible from the vba?

Thank you sbadenis

When I click on the 3dexperience link I get a list of topics but not one in particular, weird.
I don't know if I have access to these topics

I just modified my post with images because it is impossible to put a link to a particular post...

Thank you for these clarifications. Indeed, I didn't have access to it.
So yes, the folders and features are well managed in a distinct way.
I'm making progress in research...