找回密码
 注册会员

QQ登录

只需一步,快速开始

搜索
楼主: 石膏行星轮

二次开发-修改方程式

[复制链接]
发表于 2023-6-12 21:47:19 | 显示全部楼层
        public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)* N  L& ?0 J, B* f. Q, g9 c
        {
; a3 Y0 _1 @; u! `0 _6 i3 u1 T8 C            int index = GetEquationIndexByName(eqMgr, name);
  x9 j; i5 p" S( A5 Z# r1 l6 `2 D; F2 f. y9 y# \2 e- x4 j. `/ P5 |
            if (index != -1)
* e# c( K2 e+ E: a7 e            {9 R" C4 W3 D4 R& _% Z
                eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;3 b+ s* z' z7 ]0 i

: Z& [) g9 B) ?/ \                return true;
3 P" t; n: d. R- b; ]% N* P            }
; u: g2 o+ G) V) p2 X- O7 E            else
* L: E- b  T" R4 }' R  }! L6 u+ j            {
" o. O$ K, Q1 k# l- K& Q                return false;
7 O9 J5 e- q: Q            }; X4 {# n' y- }; x$ |- h
        }
7 u! o2 E  X7 ]5 v6 r. I6 M
9 H" R: m7 U' F% g/ i7 T4 @6 _
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Archiver|手机版|小黑屋|机械社区 ( 京ICP备10217105号-1,京ICP证050210号,浙公网安备33038202004372号 )

GMT+8, 2025-9-16 02:10 , Processed in 0.055575 second(s), 12 queries , Gzip On.

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表