Hacaro
Industrial
- Aug 14, 2002
- 10
I'm trying to insert a custom property that contains the weight of a part using a vba macro.
In order to do this I need the partname to insert "weight@partname.sldprt" in the property field of that property.
I can do this using GETPATHNAME and then filtering out the partname using the VB 'split' function.
BUT this does NOT work if the part isn't saved!!!
A new part seem to return NOTHING if GETPATHNAME is used, although it has been given a standard name in SolidWorks(for ex. part2).
Is there a way to get the standard name of a part that is not yet saved???
In order to do this I need the partname to insert "weight@partname.sldprt" in the property field of that property.
I can do this using GETPATHNAME and then filtering out the partname using the VB 'split' function.
BUT this does NOT work if the part isn't saved!!!
A new part seem to return NOTHING if GETPATHNAME is used, although it has been given a standard name in SolidWorks(for ex. part2).
Is there a way to get the standard name of a part that is not yet saved???