OPM通风模块创建接头BRANCH_PORT异常

环境:OPM up7

语言:C#

代码:

//Specification
string specification = "mEX-OPM";

//Main Width, Height of HVAC Rectangular/Oval component.
double mainWidth = 450;
double mainHeight = 300;

//Main Diameter of HVAC Round component.
double mainDiameter = 450;

//Length of HVAC Duct component. This is a property of the HVAC component.
double ductLength = 2000;
DPoint3d origin = new DPoint3d(0, 0, 0);

//Take off component with Round duct.
HVACRoundDuctComponentData duct3Data = new HVACRoundDuctComponentData(specification, mainDiameter);
duct3Data.SetProperty("LENGTH", ductLength.ToString());
HVACRoundDuctComponent duct3 = new HVACRoundDuctComponent(origin, duct3Data, 0, DrawingView.ViewTop, true);
duct3.Create();

origin.X = 1000;

HVACRoundTakeOffComponentData takeoff3Data = new HVACRoundTakeOffComponentData(specification, mainDiameter);
HVACRoundTakeOffComponent takeoff3 = new HVACRoundTakeOffComponent(origin, takeoff3Data, 0, DrawingView.ViewTop, true);
takeoff3.AddComponentToBranch(duct3);
takeoff3.Create();

如图所示,使用opm sdk生成接头,发现BRANCH_PORT位置飘了很远,连接性也断开了,请问这种情况是使用方式不对还是bug

Parents Reply Children
No Data