perhaps this macro is very old and it is not working anymore!!
Someone know how to fix it for parts?
It's working fine with me
Make sure you set the references correct
Go to Tools, references... in Edit Macros page.
you have other references?
Your references are OK
These are my references
This is for SW 2019
Are you still getting error and what's the message?
I am not get an error, it is just not working. my propertys are still empty!
in this macro the old interface to the custom properties is used.
You have to use the ModelDoc2-interface :-)
I think this could be the reason why you get no result.
not working with this
I have changed the first part of the macro so the values of the part will be shown...
Franz, have a look at the API-documentation. Under 2020 SOLIDWORKS API Help - Get Custom Properties of Referenced Part Example (VBA) you will find a sample how you have to handle with the custom properties.
thank you for the answer. I have SWX 2019, but it ist not working. No error and nothing is gone, same bevore.
You needed to update to the swModelDoc2.Extension.CustomPropertyManager interface when dealing with custom properties. Take a look at the attached and make any corrections that you require to formatting.
2016 SOLIDWORKS API Help - CustomPropertyManager Property (IModelDocExtension)
I can see you work very hard for change this macro... oh. Thank you very much.
I thought it would be easier to customize this, thanks
Retrieving data ...