机械社区

 找回密码
 注册会员

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: 石膏行星轮

二次开发-修改方程式

[复制链接]
发表于 2023-6-12 21:47:19 | 显示全部楼层
        public bool SetEquationValue(EquationMgr eqMgr, string name, double newValue)
: d. t; y& R. j! g- M* P        {
  ?* G% P) D2 v8 H            int index = GetEquationIndexByName(eqMgr, name);3 `5 _  Q0 ]0 x3 O( [3 J  W

5 _# l  u2 O6 v8 v, P9 ~, N; P            if (index != -1)
) ~, p# D$ j3 F# n" q: b, C' {            {
6 |* [1 ~% ~% {0 o- Z6 l# s. y                eqMgr.Equation[index] = "\"" + name + "\"=" + newValue;% }3 Y. L% d2 J& R& Y; k
$ J! k5 a8 a7 a" @9 f
                return true;
# }* ~/ q1 l* h- ?+ j8 B            }) p7 \" ?% a, z
            else
. H2 s7 e, J: Z            {" W  t1 o, k  c1 z( s8 w
                return false;
3 ^/ V* x- V+ ~4 [# w' K2 L            }
$ ]1 a' W/ L0 N        }1 B0 U5 w1 F) U

: R# y2 O0 r" v( @3 N2 d+ S
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

GMT+8, 2025-2-25 00:24 , Processed in 0.051335 second(s), 12 queries , Gzip On.

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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