/// <summary> /// Marks this property as dimension and assigns the dimension type /// </summary> /// <param name="dimType">Type of the dimension as defined in <see href="http://help.solidworks.com/2016/English/api/swconst/SolidWorks.Interop.swconst~SolidWorks.Interop.swconst.swDimensionType_e.html">swDimensionType_e enumeration</see></param> public ParameterDimensionAttribute(swDimensionType_e dimType) { if (!m_SupportedTypes.Contains(dimType)) { throw new NotSupportedException($"Dimension {dimType} is not supported"); } DimensionType = dimType; }
internal DimensionParamData(swDimensionType_e type, double val) { Type = type; Value = val; }