Beispiel #1
0
        public static double[] getGlobalParameterVector3(string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            double d0 = Gets.getGlobalParameterDouble(parameter + "[0]", m_token, m_services);
            double d1 = Gets.getGlobalParameterDouble(parameter + "[1]", m_token, m_services);
            double d2 = Gets.getGlobalParameterDouble(parameter + "[2]", m_token, m_services);

            return(new double[] { d0, d1, d2 });
        }
Beispiel #2
0
        public static double getActiveEntityParameterDouble(string entity, string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getActiveEntityParameterString(entity, parameter, m_token, m_services);

            return(getCultureInvariantDouble(str));
        }
Beispiel #3
0
        public static int getActiveEntityParameterInt(string entity, string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getActiveEntityParameterString(entity, parameter, m_token, m_services);

            return(int.Parse(str.Trim()));
        }
Beispiel #4
0
        public static bool getActiveEntityParameterBool(string entity, string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getActiveEntityParameterString(entity, parameter, m_token, m_services);

            return(str.Trim() == "1");
        }
Beispiel #5
0
        public static double getGlobalParameterDouble(string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getGlobalParameterString(parameter, m_token, m_services);

            return(getCultureInvariantDouble(str));
        }
Beispiel #6
0
        public static int getGlobalParameterInt(string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getGlobalParameterString(parameter, m_token, m_services);

            return(int.Parse(str.Trim()));
        }
Beispiel #7
0
        public static bool getGlobalParameterBool(string parameter, string m_token, PowerMILL.PluginServices m_services)
        {
            string str = Gets.getGlobalParameterString(parameter, m_token, m_services);

            return(str.Trim() == "1");
        }