ell1
Mechanical
- Apr 20, 2006
- 4
Does anyone have a quick reference on how to extract all the materials from a .sldmat database to populate a pull-down combo-box?
I am working on a small vb program to simplify our routine of entering our usual custom properties for parts. Like most of you, we use a number of custom properties for all our parts like:
Det
Description
Quantity
Finish
Material - which is linked to "SW-Material@Part1.SLDPRT"
I have already explored this site and others looking for a way to populate a pull-down list with all the entries from the sldmaterials.sldmat (or our own database)
There are examples on how to get the path and filename for a database and how to get and set a material property, but I don't know how to get all the materials from a database into a list. There are also examples on creating your own material list, but seems like a duplication of effort.
I realize that this is already built-in functionality, but I'm looking for a one-stop-shop approach. There is probably a simple way if I only knew the key.
I am working on a small vb program to simplify our routine of entering our usual custom properties for parts. Like most of you, we use a number of custom properties for all our parts like:
Det
Description
Quantity
Finish
Material - which is linked to "SW-Material@Part1.SLDPRT"
I have already explored this site and others looking for a way to populate a pull-down list with all the entries from the sldmaterials.sldmat (or our own database)
There are examples on how to get the path and filename for a database and how to get and set a material property, but I don't know how to get all the materials from a database into a list. There are also examples on creating your own material list, but seems like a duplication of effort.
I realize that this is already built-in functionality, but I'm looking for a one-stop-shop approach. There is probably a simple way if I only knew the key.