首页 > TAG信息列表 > BRF

CAD.NET二次开发过程中的记录

一、关于块的坐标转换 //以块基点为起点,X轴方向镜像块using (var plane = new Plane(reference.Position, Vector3d.XAxis.TransformBy(ed.CurrentUserCoordinateSystem))) { reference.TransformBy(Matrix3d.Mirroring(plane)); } //获取块内除标注外

cad.net 后台选择集

后台选择集 我把20210510日志贴到此处了,并且删除了日志(些许编辑): 需要1,cad自带的函数ssget如果进行矩形范围选择,那么需要设置屏幕范围可见,API上面提供了w选和c选. 需求2,后台开图没有ssget. 这个时候不妨制作一个自己的选择模式,不用可见: 遍历模型块表记录,图元采样点集,有

AutoCAD.Net/C#.Net QQ群:193522571 AutoCAD中重写命令,在命令执行前进行拦截并进行处理

private static void CurrentDocument_CommandWillStart(object sender, CommandEventArgs e) { string sCmdName = e.GlobalCommandName.ToUpper(); if (sCmdName.Contains("REFEDIT") || sCmdName.Contains("BEDIT")) { } } private static void Doc

使用ABAP调用BRF+ function

针对如下的BRF+ function: 基于如下输入,根据rule的规则,计算出的final price应等于 10 / ( 1 + 0.12 ) = 8.93 可以使用如下的report来将上述输入传入brf+的API,通过ABAP 代码来调用function的执行: REPORT zcall_function. DATA: lo_function TYPE REF TO if_fdt_function,

使用代码创建BRF ruleset

Created by Jerry Wang, last modified on Oct 02, 2014 该代码实现的功能: 为existing function创建一个空的ruleset 创建一条rule以及两个rule variable Customer Discount和promotion discount rule的规则是: 如果promotion的折扣 大于customer,则使用promotion的折扣进行p

案例分析: SAP BRF+ rule不工作的原因

Created by Jerry Wang, last modified on Nov 01, 2014 有这么一个简单的BRF+ rule: 如果customer name 等于“sap”,则final price为1,否则为2: 在simulation mode里将sap传入customer, 然而最后计算结果既不是1也不是2,而为0: debug该BRF+ function对应的generation class pro

SAP BRF+ debugger工作原理

Created by Jerry Wang on Aug 29, 2014 点击debugger button: 给context 输入值,点Debug button进入debug mode: debugger的toolbar里具有和ABAP debugger 相同的debug 功能: parameter tab里能观察所有parameter的value,单击Actions column里的icon能为context 创建watch poin

SAP BRF+ Interpretation Mode与Generation Mode

Created by Jerry Wang, last modified on Oct 02, 2014 在Simulation mode下测试一个ruleset时, 可以选择Simulation Mode为Interpretation Mode或者Generation Mode。 这两者的区别是,如果以Interpretation Mode运行ruleset, 则ruleset里每条rule包含的formula都会由BRF 框架

SAP BRF+ ruleset里维护多条rule,每条rule逐一执行

Created by Jerry Wang on Aug 29, 2014 rule1: 如果item 为pencil,context approved为true, 否则为false: insert->Create 创建第二个rule: 用Change Condition->Add More Conditions将rule1计算结果 approved作为rule2 的evaluation condition的输入: 仅当customer name为sap