Hello,
I want to put the custom properties of the active model in a datagridview on my taskpane. I have this code:
- object PropNames = default(object);
- object PropTypes = default(object);
- object PropValues = default(object);
- swApp = (SldWorks)Activator.CreateInstance(Type.GetTypeFromProgID("SldWorks.Application"));
- swModel = swApp.IActiveDoc2;
- swCustProp = swModel.Extension.get_CustomPropertyManager("");
- swCustProp.GetAll(ref PropNames, ref PropTypes, ref PropValues);
- string[] asCustPropName = (string[])PropNames;
- string[] asCustPropType = (string[])PropTypes;
- string[] asCustPropValues = (string[])PropValues;
How can I do that?
SolidworksApi macros