OPM UP8 生成通风方管端口异常

环境:OPM UP8

语言:C#

问题:使用OPM SDK生成通风方管HVACRectangularDuctComponent,等级库设置为specification = "mRectHVAC-OPM",在UP7中生成的方管,端口是法兰连接,图形两端也带法兰,在UP8中端口是法兰连接,但图形不带法兰,已查看UP7和UP8都有等级库mRectHVAC-OPM,内容也一样。请问这是什么原因造成的?

Parents Reply
  • string specification = "mRectHVAC-OPM";
    
    //Main Width, Height of HVAC Rectangular/Oval component.
    double mainWidth = 450;
    double mainHeight = 300;
    
    //Length of HVAC Duct component. This is a property of the HVAC component.
    double ductLength = 2000;
    
    DPoint3d origin = new DPoint3d(0, 0, 0);
    
    if (PrepareForHVAC(specification))
    {
        //Take off component with Rectangular duct.
        HVACRectangularDuctComponentData duct1Data = new HVACRectangularDuctComponentData(specification, mainWidth, mainHeight);
        duct1Data.SetProperty("LENGTH", ductLength.ToString());
        HVACRectangularDuctComponent duct1 = new HVACRectangularDuctComponent(origin, duct1Data, 0, DrawingView.ViewTop, true);
        duct1.Create();
    
        origin.X = 1000;
    }

Children
No Data