If a custom property has associative dimension, how would I get the value and not the dimension name
Posted: Thu Aug 19, 2021 8:48 am
I am looking to link basic length and width as a custom property. So, the dimension that determines those two values are linked in the custom property which would look something like this: "Length@Sketch1@Part1" and "Width@Sketch1@Part1".
So, when writing my code it doesn't copy the Evaluated value of the custom property, it copies the "Value/Text Expression".
Is there a way to grab the Evaluated value instead of the text expression in the custom property?
The current code I'm using is :
I am using this macro to copy data into an excel database that I've created and based on a few custom properties that are concatenated, it returns data back into solidworks. A lot of the solidworks designers here like to link dimensions to their properties to use in their BOM and I'd like to keep it that way.
So, when writing my code it doesn't copy the Evaluated value of the custom property, it copies the "Value/Text Expression".
Is there a way to grab the Evaluated value instead of the text expression in the custom property?
The current code I'm using is :
Code: Select all
swCustProp.Get4("Width", False, val, valout)