Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CLCarmen Lopera13/09/2018
I am calling GetCustomProperty with a property name that the part doesn't have and instead of returning null is crashing. The documentation doesn't say anything about the return value if the property doesn't exist. Do we need to call this method when we know the property exists?
string sCustPropStr = null;
SwDmCustomInfoType nPropType = 0;
sCustPropStr = swDoc.GetCustomProperty("MyProperty", out nPropType);