프로젝트

일반

사용자정보

개정판 e0828ff4

IDe0828ff45d41fa3168a3456db921e4162f355d80
상위 7279182a
하위 f4571b5d

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

dev issue #000 : fix end break leaderline

Change-Id: I5054089a71616d2b0251ba2cd1fe31a76b66e8bd

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
2956 2956

  
2957 2957
            if (targetLMConnector != null)
2958 2958
            {
2959
                // LEADER Line 검사
2960
                bool leaderLine = false;
2961
                SymbolMapping symbolMapping = document.SymbolMappings.Find(x => x.UID == endBreak.DBUID);
2962
                if (symbolMapping != null)
2963
                    leaderLine = symbolMapping.LEADERLINE;
2964

  
2959 2965
                double[] point = GetSegmentPoint(ownerObj, connectedItem, targetLMConnector);
2960 2966
                Array array = null;
2961 2967
                if (point != null)
2962 2968
                    array = new double[] { 0, point[0], point[1] };
2963 2969
                else
2964 2970
                    array = new double[] { 0, endBreak.SPPID.ORIGINAL_X, endBreak.SPPID.ORIGINAL_Y };
2965
                LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: true);
2971
                LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: leaderLine);
2966 2972
                if (_LmLabelPersist != null)
2967 2973
                {
2968 2974
                    _LmLabelPersist.Commit();
DTI_PID/SPPIDConverter/ConverterDocking.cs
233 233
        private void simpleButton1_Click(object sender, EventArgs e)
234 234
        {
235 235
            Placement placement = new Placement();
236
            LMADataSource dataSource = placement.PIDDataSource;
237
            LMModelItem modelitem = dataSource.GetModelItem("98F75D05005747969BECFC8E06340129");
238
            foreach (LMAAttribute attri in modelitem.Attributes)
239
            {
240
                string name = attri.Name;
241
                dynamic value = attri.get_Value();
242
            }
243
            return;
236
            //LMADataSource dataSource = placement.PIDDataSource;
237
            //LMModelItem modelitem = dataSource.GetModelItem("98F75D05005747969BECFC8E06340129");
238
            //foreach (LMAAttribute attri in modelitem.Attributes)
239
            //{
240
            //    string name = attri.Name;
241
            //    dynamic value = attri.get_Value();
242
            //}
243
            
244 244
            if (application.ActiveSelectSet.Count > 0)
245 245
            {
246 246
                string modelItemId = null;
......
261 261

  
262 262
                    if (modelItemId!=null)
263 263
                    {
264
                        //LMADataSource dataSource = new LMADataSource();
264
                        LMADataSource dataSource = new LMADataSource();
265 265
                        LMModelItem modelItem = dataSource.GetModelItem(modelItemId);
266 266
                        foreach (LMRepresentation item in modelItem.Representations)
267 267
                        {

내보내기 Unified diff

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