Exemple #1
0
        /// <summary>
        /// For standard funcionality fill following methods.
        /// </summary>
        #region Public overrided methods for develeopment

        /// <summary>
        /// Called when Initialize.
        /// Creates dedicated extension class according main context.
        /// </summary>
        /// <returns>Returns true if succeeded.</returns>

        public override bool OnInitialize()
        {
            if (ThisApplication.Context2.Product.Type == REXInterfaceType.Revit)
            {
                ExtensionRef = new Main.Revit.ExtensionRevit(this);
            }
            if (ExtensionRef != null)
            {
                if (!ExtensionRef.OnInitialize())
                {
                    return(false);
                }
            }

            // insert code here.

            return(base.OnInitialize());
        }
Exemple #2
0
        /// <summary>
        /// For standard funcionality fill following methods.
        /// </summary>
        #region Public overrided methods for develeopment

        /// <summary>
        /// Called when Initialize.
        /// Creates dedicated extension class according main context.
        /// </summary>
        /// <returns>Returns true if succeeded.</returns>
        public override bool OnInitialize()
        {
            $REXSrcExtension.ExtensionProduct.Revit.Construction$
            $REXSrcExtension.ExtensionProduct.RSA.Construction$
            $REXSrcExtension.ExtensionProduct.ASD.Construction$
            $REXSrcExtension.ExtensionProduct.Civil3D.Construction$

            if (ExtensionRef != null)
            {
                if (!ExtensionRef.OnInitialize())
                {
                    return(false);
                }
            }

            // insert code here.

            return(base.OnInitialize());
        }
Exemple #3
0
        /// <summary>
        /// For standard funcionality fill following methods.
        /// </summary>
        #region Public overrided methods for develeopment

        /// <summary>
        /// Called when Initialize.
        /// Creates dedicated extension class according main context.
        /// </summary>
        /// <returns>Returns true if succeeded.</returns>

        public override bool OnInitialize()
        {
            if (ThisApplication.Context2.Product.Type == REXInterfaceType.Revit)
            {
                ExtensionRef = new Main.Revit.ExtensionRevit(this);
            }

            if (ExtensionRef != null)
            {
                if (!ExtensionRef.OnInitialize())
                {
                    return(false);
                }
            }

            Converter = new REX.ContentGenerator.Converters.REXFamilyConverter();

            return(base.OnInitialize());
        }