프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

hytos / DTI_PID / SPPIDConverter / AutoModeling.cs @ 30d2cfcc

이력 | 보기 | 이력해설 | 다운로드 (1.34 KB)

1 cfda1fed gaqhf
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using Llama;
7
using Plaice;
8
using Converter.BaseModel;
9
using Converter.SPPID.Model;
10
using Converter.SPPID.Properties;
11
using Converter.SPPID.Util;
12
using Converter.SPPID.DB;
13
14
using System.Threading;
15
using Microsoft.VisualBasic;
16
using Newtonsoft.Json;
17
18
namespace Converter.SPPID
19
{
20
    public class AutoModeling
21
    {
22
        SPPID_Document document;
23
        public AutoModeling(SPPID_Document document)
24
        {
25
            this.document = document;
26
        }
27
28
        public void Run()
29
        {
30
            dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
31
            dynamic newDrawing = application.Drawings.Add(document.Unit, document.Template, document.DrawingNumber, document.DrawingName);
32
            application.ActiveWindow.Fit();
33
            Thread.Sleep(100);
34
            application.ActiveWindow.Zoom = 60;
35
            Thread.Sleep(100);
36
37
38
        }
39
40
41
        private void SymbolModeling(Symbol symbol)
42
        {
43
44
        }
45
46
        private void LineModeling(Line line)
47
        {
48
49
        }
50
51
        private void LineNumberModeling(LineNumber lineNumber)
52
        {
53
54
        }
55
56
        private void TextModeling(Text text)
57
        {
58
59
        }
60
61
        private void NoteModeling(Note note)
62
        {
63
64
        }
65
66
    }
67
}
클립보드 이미지 추가 (최대 크기: 500 MB)