Ejemplo n.º 1
0
        public static object BkDXFUnit_ScaleInvFac(hwpDxf_Enums.UNITS_BASE vnumUnitsBase, hwpDxf_Enums.UNITS_METRIC vnumOldUnitsMetric, hwpDxf_Enums.UNITS_METRIC vnumNewUnitsMetric, hwpDxf_Enums.UNITS_BRITISCH vnumOldUnitsBritish, hwpDxf_Enums.UNITS_BRITISCH vnumNewUnitsBritish)
        {
            object dvarFac2 = RuntimeHelpers.GetObjectValue(BkDXFUnit_ScaleFac(vnumUnitsBase, vnumOldUnitsMetric, vnumNewUnitsMetric, vnumOldUnitsBritish, vnumNewUnitsBritish));

            dvarFac2 = ((!Operators.ConditionalCompareObjectEqual(dvarFac2, Interaction.IIf(Expression: false, 0m, 0.0), TextCompare: false)) ? Operators.DivideObject(Interaction.IIf(Expression: false, 1m, 1.0), dvarFac2) : RuntimeHelpers.GetObjectValue(Interaction.IIf(Expression: false, 1m, 1.0)));
            return(RuntimeHelpers.GetObjectValue(dvarFac2));
        }
Ejemplo n.º 2
0
        public static object BkDXFUnit_ScaleFac(hwpDxf_Enums.UNITS_BASE vnumUnitsBase, hwpDxf_Enums.UNITS_METRIC vnumOldUnitsMetric, hwpDxf_Enums.UNITS_METRIC vnumNewUnitsMetric, hwpDxf_Enums.UNITS_BRITISCH vnumOldUnitsBritish, hwpDxf_Enums.UNITS_BRITISCH vnumNewUnitsBritish)
        {
            switch (vnumUnitsBase)
            {
            case hwpDxf_Enums.UNITS_BASE.unBritish:
                return(RuntimeHelpers.GetObjectValue(BkDXFUnit_BritishFac(vnumOldUnitsBritish, vnumNewUnitsBritish)));

            case hwpDxf_Enums.UNITS_BASE.unMetric:
                return(RuntimeHelpers.GetObjectValue(BkDXFUnit_MetricFac(vnumOldUnitsMetric, vnumNewUnitsMetric)));

            default:
                return(RuntimeHelpers.GetObjectValue(Interaction.IIf(Expression: false, 1m, 1.0)));
            }
        }
Ejemplo n.º 3
0
        public AcadSysVar()
        {
            mblnOpened = true;
            base.FriendLetNodeImageEnabledID  = 113;
            base.FriendLetNodeImageDisabledID = 114;
            base.FriendLetNodeName            = "Systemvariable";
            base.FriendLetNodeText            = "Systemvariable";
            object robjObject = this;

            FriendAddToCollection(ref robjObject);
            mlngApplicationIndex = -1;
            mlngDocumentIndex    = -1;
            mvarValue            = RuntimeHelpers.GetObjectValue(hwpDxf_Vars.pvarValue);
            mstrValueString      = hwpDxf_Vars.pstrValueString;
            mvarAppDefault       = RuntimeHelpers.GetObjectValue(hwpDxf_Vars.pvarAppDefault);
            mstrAppDefaultString = hwpDxf_Vars.pstrAppDefaultString;
            mnumUnitsBase        = (hwpDxf_Enums.UNITS_BASE)hwpDxf_ConstMisc.pcnumUnitsBase;
            mnumUnitsMetric      = (hwpDxf_Enums.UNITS_METRIC)hwpDxf_ConstMisc.pcnumUnitsMetric;
            mnumUnitsBritish     = (hwpDxf_Enums.UNITS_BRITISCH)hwpDxf_ConstMisc.pcnumUnitsBritish;
            object dvarUnitsInvFac = RuntimeHelpers.GetObjectValue(hwpDxf_Unit.BkDXFUnit_ScaleInvFac((hwpDxf_Enums.UNITS_BASE)hwpDxf_ConstMisc.pcnumUnitsBase, hwpDxf_Enums.UNITS_METRIC.unmMeter, (hwpDxf_Enums.UNITS_METRIC)hwpDxf_ConstMisc.pcnumUnitsMetric, hwpDxf_Enums.UNITS_BRITISCH.unbInch, (hwpDxf_Enums.UNITS_BRITISCH)hwpDxf_ConstMisc.pcnumUnitsBritish));
            bool   flag            = false;

            mdblUnitsInvFac = Conversions.ToDouble(dvarUnitsInvFac);
        }