프로젝트

일반

사용자정보

개정판 c2fef4ca

IDc2fef4ca057bdf34cc00fbf990bda0d8ab385150
상위 8634af60
하위 2574510c, b8bd98aa

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #000 : (임시)OPC 일경우 180 degree시 Mirror 1

Change-Id: I17166ab6de4409b6c13a335948d7535818e00f18

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
39 39
            this._ETCSetting = ETCSetting.GetInstance();
40 40
        }
41 41

  
42
        public void Test()
43
        {
44
            _placement = new Placement();
45
            dataSource = _placement.PIDDataSource;
46

  
47
            Ingr.RAD2D.Symbol2d symbol2d = radApp.ActiveSelectSet[0] as Ingr.RAD2D.Symbol2d;
48
            if (symbol2d != null)
49
            {
50
                string modelID = symbol2d.AttributeSets[0][5].GetValue().ToString();
51

  
52
                LMModelItem modelItem = dataSource.GetModelItem(modelID);
53
                foreach (LMRepresentation rep in modelItem.Representations)
54
                {
55
                    if (rep.Attributes["RepresentationType"].get_Value() == "Symbol")
56
                    {
57
                        LMSymbol symbol = dataSource.GetSymbol(rep.Id);
58

  
59
                        int rotateIndex = symbol.get_IsRotatableIndex();
60
                        int mirrorIndex = symbol.get_IsMirroredIndex();
61
                        
62
                    }
63
                }
64
                    
65
                
66
                //symbol2d.AttributeSets[]
67
                //dataSource.GetSymbol()
68
            }
69
        }
70

  
42 71
        public void Run()
43 72
        {
44 73
            CloseOPCForm.Run();
......
322 351

  
323 352
        private void SymbolModeling(Symbol symbol, Symbol targetSymbol, Symbol prevSymbol)
324 353
        {
354
            // 임시
325 355
            if (symbol.SPPID.MAPPINGNAME.Contains("Labels - "))
326 356
                return;
357

  
327 358
            if (!string.IsNullOrEmpty(symbol.SPPID.RepresentationId))
328 359
                return;
329 360

  
......
334 365
            double y = symbol.SPPID.ORIGINAL_Y;
335 366
            int mirror = 0;
336 367
            double angle = symbol.ANGLE;
368
            // 임시
369
            if (mappingPath.Contains("Piping OPC's") && angle == Math.PI)
370
            {
371
                mirror = 1;
372
            }
373
                
337 374

  
338 375
            if (targetSymbol != null && !string.IsNullOrEmpty(targetSymbol.SPPID.RepresentationId))
339 376
            {

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)