Custom property of library functions

Hello

I make aluminum structures with the mechanically welded module which allows me to use our profiles.

Each element contains several properties that are used in the welded parts list.

I identify each profile by a letter with a macro. (Added the "N°" property in the properties)

 

I wish I could get the list of properties for each "article_list....... " in my macro.

However, I can't find this information. Do you have a solution?

 

In addition, I insert library parts and I would like to be able to with the name of the function that is in the "article_list....... folder  " ?

 

I attach the macro that allows me to add the letter as a property.

 

Thank you in advance.

 

 


reference_profil.swp

I attach a preview of a room template.

Full properties are for a library profile.

I would like to have this information in my macro.

 

Library functions have no properties but I would like to have the name of the function in my macro.

 

Thank you in advance.


propriete.pdf

I think this can lead you :) http://help.solidworks.com/2016/english/api/sldworksapi/get_solid_bodies_from_cut-list_folders_and_get_custom_properties_example_vb.htm

Thank you for your answer.

I wanted to try to understand the macro but I get error messages.

 

Have you activated the reference as specified in the header? 

' 2. Add a reference to Microsoft Scripting Runtime (click
'    Tools > References > Browse > C:\windows\system32\scrrun.dll).

 

Yes, from VBA.

However, I don't see it in the active list.

 

I have an error for the declaration in VBA:

Dim fs As Scripting.FileSystemObject
Dim a As Scripting.TextStream

 

weldment_box3.sldprt returns the error message "An error occurred while opening..... "

This is Microsoft Scripting Runtime

 

Which version of Solidworks do you have? 


propriete_personnalise_des_fonctions_de_bibliotheque.png

Sorry

SolidWorks 2012 SP5.0

 

It's okay I ran the macro on my model.

 

I analyze the information to integrate it.

Thank you very much