找回密码
 注册会员

QQ登录

只需一步,快速开始

搜索
楼主: 石膏行星轮

二次开发-修改方程式

[复制链接]
发表于 2023-6-12 21:47:19 | 显示全部楼层
        public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)
. ]1 e% G+ @1 e2 |        {# ~& o; p/ q1 O8 f: E
            int index = GetEquationIndexByName(eqMgr, name);
: m- [8 ~+ e  Q5 |& H5 M# P: y5 C. @" U2 |% f' Y
            if (index != -1)8 }( H" R2 `' N) ^% `
            {
  E, O3 D2 B( p                eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;
4 J* M! f/ L" G2 G7 k2 R8 D% ~
+ o. G2 y5 r  S- Y# N                return true;
: y5 R. M& y8 d9 a9 M! X* }& M            }
& U3 U1 p6 h; Y6 c' P8 G5 v            else
0 A; o8 T0 Z# v( j            {2 f5 Q9 b0 Z+ P2 W) R! o& t
                return false;- K3 _4 L# d# C: E; c2 o8 C. p+ T# {
            }' ?  O+ o1 n8 ~
        }( s, e2 w6 Z. N  ~. z* I1 R8 z

" O, b$ Y" v# g/ g9 @) D& }) \, `
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

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