hytos / DTI_PID / SPPIDConverter / AutoModeling.cs @ bca81f4c
이력 | 보기 | 이력해설 | 다운로드 (1.64 KB)
1 |
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 |
foreach (LineNumber lineNumber in document.LINENUMBERS) |
38 |
{ |
39 |
foreach (LineNumberRun run in lineNumber.RUNS) |
40 |
{ |
41 |
foreach (object item in run.RUNITEMS) |
42 |
{ |
43 |
|
44 |
|
45 |
} |
46 |
} |
47 |
} |
48 |
|
49 |
} |
50 |
|
51 |
|
52 |
private void SymbolModeling(Symbol symbol) |
53 |
{ |
54 |
|
55 |
} |
56 |
|
57 |
private void LineModeling(Line line) |
58 |
{ |
59 |
|
60 |
} |
61 |
|
62 |
private void LineNumberModeling(LineNumber lineNumber) |
63 |
{ |
64 |
|
65 |
} |
66 |
|
67 |
private void TextModeling(Text text) |
68 |
{ |
69 |
|
70 |
} |
71 |
|
72 |
private void NoteModeling(Note note) |
73 |
{ |
74 |
|
75 |
} |
76 |
|
77 |
} |
78 |
} |