Solidworks API, Saving Data

Hello

I wish I could save data in a Solidworks file.
Assuming it works like that. (I would like to be able to record data like Logopress would do with Machining Axes, or Solidwatch scoreboards, etc.)

Where can I save data like this (and how)?

(I don't work in VBA, but in C#).
 

1 Like

Hello

What do you call it?

There is a library that allows you to modify or read SW files in C and Vb without opening them, these are the Document Manager APIs.

More info here:

http://help.solidworks.com/2015/english/api/swdocmgrapi/Welcome-swdocmgrapi.html?id=4dec0000f5984beda73258c9fbad1df0#Pg0

http://help.solidworks.com/2015/english/api/swdocmgrapi/GettingStarted-swdocmgrapi.html?id=06db118169264555bac69e5da480f990#Pg0&ProductType=&ProductName=

 

However, you must apply for a license to use it. But it doesn't pay off.

1 Like

Hello

I think that to save data of this style, the most appropriate would be to use the custom properties of SolidWorks.

See here:

http://help.solidworks.com/2012/English/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IModelDocExtension~CustomPropertyManager.html

Or you can even use the parts families, which are Excel tables related to the configurations, or you can manage as many properties as you want for each configuration:

http://help.solidworks.com/2015/english/api/sldworksapi/Get_Custom_Properties_for_Configuration_Example_CSharp.htm

 

 

1 Like

Hello

I also want to perform the same action but being a real beginner in the field and then I have a lot of difficulties with the computer language and its technical terms. Could you please give me a simple explanation in terms of " plus everyone ". Thank you.

1 Like

Hi Emanuptt5t, the easiest way is to ask a new specific question, targeting the problem.

1 Like