/// <summary>
        /// Serializes the parameters of the macro feature to a structure
        /// </summary>
        /// <typeparam name="TParams">Type of parameters structure</typeparam>
        /// <param name="featData">Pointer to macro feature data</param>
        /// <param name="feat">Pointer to a feature</param>
        /// <param name="model">Pointer to model document</param>
        /// <param name="parameters">Parameters to serialize</param>
        public static void SetParameters <TParams>(this IMacroFeatureData featData, IFeature feat, IModelDoc2 model, TParams parameters)
            where TParams : class, new()
        {
            MacroFeatureOutdateState_e state;

            m_ParamsParser.SetParameters(model, feat, featData, parameters, out state);
        }
Esempio n. 2
0
 /// <inheritdoc cref="SetParameters(IModelDoc2, IFeature, IMacroFeatureData, TParams)"/>
 /// <param name="state">Current state of the parameters</param>
 protected void SetParameters(IModelDoc2 model, IFeature feat, IMacroFeatureData featData, TParams parameters, out MacroFeatureOutdateState_e state)
 {
     m_ParamsParser.SetParameters(model, feat, featData, parameters, out state);
 }