microstation 0.4.1 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.autotest +23 -23
- data/.rspec +2 -2
- data/Gemfile +29 -10
- data/History.txt +6 -6
- data/LICENSE.adoc +22 -0
- data/Manifest.txt +91 -60
- data/README.adoc +131 -0
- data/Rakefile +72 -30
- data/bin/dgn2pdf +36 -37
- data/bin/dgn_template +107 -0
- data/bin/pw_print +35 -0
- data/cad_files/drawing_faatitle_in_non_default_model.dgn +0 -0
- data/cad_files/drawing_no_block.dgn +0 -0
- data/cad_files/drawing_with_3_block.dgn +0 -0
- data/cad_files/drawing_with_block.dgn +0 -0
- data/cad_files/drawing_with_text.dgn +0 -0
- data/cad_files/seed2d.dgn +0 -0
- data/cad_files/seed3d.dgn +0 -0
- data/lib/microstation/app.rb +781 -286
- data/lib/microstation/cad_input_queue.rb +100 -25
- data/lib/microstation/cell.rb +191 -0
- data/lib/microstation/changer.rb +70 -0
- data/lib/microstation/configuration.rb +193 -57
- data/lib/microstation/criteria_creation_t.rb +23 -0
- data/lib/microstation/dir.rb +252 -252
- data/lib/microstation/directory.rb +46 -0
- data/lib/microstation/drawing.rb +686 -189
- data/lib/microstation/element.rb +311 -0
- data/lib/microstation/enumerator.rb +32 -29
- data/lib/microstation/errors.rb +17 -0
- data/lib/microstation/event_handler.rb +28 -0
- data/lib/microstation/ext/pathname.rb +23 -25
- data/lib/microstation/ext/win32ole.rb +7 -0
- data/lib/microstation/extensions/faa.rb +124 -0
- data/lib/microstation/file_tests.rb +68 -0
- data/lib/microstation/functions.rb +60 -0
- data/lib/microstation/graphics.rb +35 -0
- data/lib/microstation/line.rb +19 -0
- data/lib/microstation/model.rb +45 -0
- data/lib/microstation/model_trait.rb +189 -0
- data/lib/microstation/ole_cad_input_message.rb +101 -0
- data/lib/microstation/ole_helper.rb +152 -0
- data/lib/microstation/pdf_support.rb +40 -40
- data/lib/microstation/point3d.rb +71 -0
- data/lib/microstation/primitive_command_interface.rb +66 -0
- data/lib/microstation/properties.rb +61 -57
- data/lib/microstation/property_handler.rb +48 -0
- data/lib/microstation/scan/color.rb +38 -38
- data/lib/microstation/scan/criteria.rb +89 -85
- data/lib/microstation/scan/klass.rb +43 -43
- data/lib/microstation/scan/level.rb +38 -38
- data/lib/microstation/scan/line_style.rb +45 -45
- data/lib/microstation/scan/line_weight.rb +33 -33
- data/lib/microstation/scan/range.rb +19 -0
- data/lib/microstation/scan/scan_trait.rb +51 -0
- data/lib/microstation/scan/subtype.rb +40 -40
- data/lib/microstation/scan/type.rb +134 -109
- data/lib/microstation/scan_trait.rb +62 -0
- data/lib/microstation/scanner.rb +24 -24
- data/lib/microstation/tag.rb +87 -58
- data/lib/microstation/tag_set.rb +385 -280
- data/lib/microstation/tag_set_trait.rb +51 -0
- data/lib/microstation/tagged_element.rb +105 -0
- data/lib/microstation/template.rb +90 -84
- data/lib/microstation/template_info.rb +172 -0
- data/lib/microstation/template_runner.rb +65 -0
- data/lib/microstation/text.rb +79 -54
- data/lib/microstation/text_node.rb +124 -74
- data/lib/microstation/ts/attribute.rb +140 -139
- data/lib/microstation/ts/instance.rb +146 -112
- data/lib/microstation/ts/tagset_trait.rb +49 -0
- data/lib/microstation/types.rb +91 -91
- data/lib/microstation/version.rb +5 -0
- data/lib/microstation/wrap.rb +28 -214
- data/lib/microstation.rb +252 -88
- data/plot/pdf-bw.plt +164 -164
- data/plot/pdf.plt +163 -163
- data/plot/png.plt +383 -383
- data/plot/tiff.plt +384 -384
- data/plot/wmbw.tbl +324 -66
- data/plot/wmcolor.tbl +62 -62
- data/spec/microstation/app_spec.rb +184 -0
- data/spec/microstation/configuration_spec.rb +131 -0
- data/spec/microstation/drawing_spec.rb +245 -0
- data/spec/microstation/functions_spec.rb +36 -0
- data/spec/microstation/tag_set_spec.rb +159 -0
- data/spec/microstation/template_spec.rb +159 -0
- data/spec/microstation/text_node_spec.rb +67 -0
- data/spec/microstation/text_spec.rb +42 -0
- data/spec/microstation_spec.rb +47 -36
- data/spec/spec_helper.rb +97 -31
- metadata +308 -84
- data/.gemtest +0 -0
- data/README.txt +0 -75
- data/lib/microstation/attributes.rb +0 -35
- data/lib/microstation/extensions/hash.rb +0 -27
- data/spec/app_spec.rb +0 -267
- data/spec/configuration_spec.rb +0 -122
- data/spec/drawing_spec.rb +0 -247
- data/spec/drawings/new_drawing.dgn +0 -0
- data/spec/drawings/test.dgn +0 -0
- data/spec/drawings/test1.dgn +0 -0
- data/spec/drawings/testfile.pdf +0 -0
- data/spec/enumerator_spec.rb +0 -60
- data/spec/scanner_spec.rb +0 -155
- data/spec/spec_app.rb +0 -11
- data/spec/tag_set_spec.rb +0 -123
- data/spec/text_node_spec.rb +0 -92
- data/spec/text_spec.rb +0 -62
metadata
CHANGED
@@ -1,194 +1,424 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microstation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dominic Sisneros
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: methadone
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.0.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.0.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: liquid
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.0.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: gli
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 0.0.0
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 0.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dry-monads
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: hoe-yard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.1.3
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.1.3
|
62
83
|
- !ruby/object:Gem::Dependency
|
63
84
|
name: minitest
|
64
85
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
86
|
requirements:
|
67
|
-
- -
|
87
|
+
- - ">"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.0.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-hooks
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: aruba
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.0.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.0.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: yard
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
68
130
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
131
|
+
version: '0.0'
|
70
132
|
type: :development
|
71
133
|
prerelease: false
|
72
134
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
135
|
requirements:
|
75
|
-
- -
|
136
|
+
- - ">="
|
76
137
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
138
|
+
version: '0.0'
|
78
139
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
140
|
+
name: guard-yard
|
80
141
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
142
|
requirements:
|
83
|
-
- -
|
143
|
+
- - ">="
|
84
144
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
145
|
+
version: '0.0'
|
86
146
|
type: :development
|
87
147
|
prerelease: false
|
88
148
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
149
|
requirements:
|
91
|
-
- -
|
150
|
+
- - ">="
|
92
151
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
152
|
+
version: '0.0'
|
94
153
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
154
|
+
name: hoe
|
96
155
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
156
|
requirements:
|
99
|
-
- -
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.1'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.1'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: hoe-bundler
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">"
|
100
172
|
- !ruby/object:Gem::Version
|
101
173
|
version: 0.0.0
|
102
174
|
type: :development
|
103
175
|
prerelease: false
|
104
176
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
177
|
requirements:
|
107
|
-
- -
|
178
|
+
- - ">"
|
108
179
|
- !ruby/object:Gem::Version
|
109
180
|
version: 0.0.0
|
110
181
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
182
|
+
name: guard
|
112
183
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
184
|
requirements:
|
115
|
-
- -
|
185
|
+
- - ">"
|
116
186
|
- !ruby/object:Gem::Version
|
117
187
|
version: 0.0.0
|
118
188
|
type: :development
|
119
189
|
prerelease: false
|
120
190
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
191
|
requirements:
|
123
|
-
- -
|
192
|
+
- - ">"
|
124
193
|
- !ruby/object:Gem::Version
|
125
194
|
version: 0.0.0
|
126
195
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
196
|
+
name: guard-minitest
|
128
197
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
198
|
requirements:
|
131
|
-
- -
|
199
|
+
- - ">"
|
132
200
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
201
|
+
version: 0.0.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.0.0
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: minitest-focus
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 0.0.0
|
134
216
|
type: :development
|
135
217
|
prerelease: false
|
136
218
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
219
|
requirements:
|
139
|
-
- -
|
220
|
+
- - ">"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 0.0.0
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: notiffany
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">"
|
140
228
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
142
|
-
|
143
|
-
|
144
|
-
|
229
|
+
version: 0.0.0
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.0.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: pry
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 0.0.0
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.0.0
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: pry-byebug
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 0.0.0
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 0.0.0
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: rb-readline
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 0.0.0
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.0.0
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: win32console
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 0.0.0
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 0.0.0
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rb-notifu
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 0.0.0
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 0.0.0
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: wdm
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ">"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 0.0.0
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: 0.0.0
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: solargraph
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">"
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: 0.0.0
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">"
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: 0.0.0
|
335
|
+
description: Wrapping of microstation using win32ole to automate and control from
|
336
|
+
ruby
|
145
337
|
email:
|
146
338
|
- dsisnero@gmail.com
|
147
339
|
executables:
|
148
340
|
- dgn2pdf
|
341
|
+
- dgn_template
|
342
|
+
- pw_print
|
149
343
|
extensions: []
|
150
344
|
extra_rdoc_files:
|
151
345
|
- History.txt
|
152
346
|
- Manifest.txt
|
153
|
-
- README.txt
|
154
347
|
files:
|
155
|
-
- .autotest
|
156
|
-
- .rspec
|
348
|
+
- ".autotest"
|
349
|
+
- ".rspec"
|
157
350
|
- Gemfile
|
158
351
|
- History.txt
|
352
|
+
- LICENSE.adoc
|
159
353
|
- Manifest.txt
|
160
|
-
- README.
|
354
|
+
- README.adoc
|
161
355
|
- Rakefile
|
162
356
|
- bin/dgn2pdf
|
357
|
+
- bin/dgn_template
|
358
|
+
- bin/pw_print
|
359
|
+
- cad_files/drawing_faatitle_in_non_default_model.dgn
|
360
|
+
- cad_files/drawing_no_block.dgn
|
361
|
+
- cad_files/drawing_with_3_block.dgn
|
362
|
+
- cad_files/drawing_with_block.dgn
|
363
|
+
- cad_files/drawing_with_text.dgn
|
364
|
+
- cad_files/seed2d.dgn
|
365
|
+
- cad_files/seed3d.dgn
|
163
366
|
- lib/microstation.rb
|
164
367
|
- lib/microstation/app.rb
|
165
|
-
- lib/microstation/attributes.rb
|
166
368
|
- lib/microstation/cad_input_queue.rb
|
369
|
+
- lib/microstation/cell.rb
|
370
|
+
- lib/microstation/changer.rb
|
167
371
|
- lib/microstation/configuration.rb
|
372
|
+
- lib/microstation/criteria_creation_t.rb
|
168
373
|
- lib/microstation/dir.rb
|
374
|
+
- lib/microstation/directory.rb
|
169
375
|
- lib/microstation/drawing.rb
|
376
|
+
- lib/microstation/element.rb
|
170
377
|
- lib/microstation/enumerator.rb
|
378
|
+
- lib/microstation/errors.rb
|
379
|
+
- lib/microstation/event_handler.rb
|
171
380
|
- lib/microstation/ext/pathname.rb
|
172
|
-
- lib/microstation/
|
381
|
+
- lib/microstation/ext/win32ole.rb
|
382
|
+
- lib/microstation/extensions/faa.rb
|
383
|
+
- lib/microstation/file_tests.rb
|
384
|
+
- lib/microstation/functions.rb
|
385
|
+
- lib/microstation/graphics.rb
|
386
|
+
- lib/microstation/line.rb
|
387
|
+
- lib/microstation/model.rb
|
388
|
+
- lib/microstation/model_trait.rb
|
389
|
+
- lib/microstation/ole_cad_input_message.rb
|
390
|
+
- lib/microstation/ole_helper.rb
|
173
391
|
- lib/microstation/pdf_support.rb
|
392
|
+
- lib/microstation/point3d.rb
|
393
|
+
- lib/microstation/primitive_command_interface.rb
|
174
394
|
- lib/microstation/properties.rb
|
395
|
+
- lib/microstation/property_handler.rb
|
175
396
|
- lib/microstation/scan/color.rb
|
176
397
|
- lib/microstation/scan/criteria.rb
|
177
398
|
- lib/microstation/scan/klass.rb
|
178
399
|
- lib/microstation/scan/level.rb
|
179
400
|
- lib/microstation/scan/line_style.rb
|
180
401
|
- lib/microstation/scan/line_weight.rb
|
402
|
+
- lib/microstation/scan/range.rb
|
403
|
+
- lib/microstation/scan/scan_trait.rb
|
181
404
|
- lib/microstation/scan/subtype.rb
|
182
405
|
- lib/microstation/scan/type.rb
|
406
|
+
- lib/microstation/scan_trait.rb
|
183
407
|
- lib/microstation/scanner.rb
|
184
408
|
- lib/microstation/tag.rb
|
185
409
|
- lib/microstation/tag_set.rb
|
410
|
+
- lib/microstation/tag_set_trait.rb
|
411
|
+
- lib/microstation/tagged_element.rb
|
186
412
|
- lib/microstation/template.rb
|
413
|
+
- lib/microstation/template_info.rb
|
414
|
+
- lib/microstation/template_runner.rb
|
187
415
|
- lib/microstation/text.rb
|
188
416
|
- lib/microstation/text_node.rb
|
189
417
|
- lib/microstation/ts/attribute.rb
|
190
418
|
- lib/microstation/ts/instance.rb
|
419
|
+
- lib/microstation/ts/tagset_trait.rb
|
191
420
|
- lib/microstation/types.rb
|
421
|
+
- lib/microstation/version.rb
|
192
422
|
- lib/microstation/wrap.rb
|
193
423
|
- plot/pdf-bw.plt
|
194
424
|
- plot/pdf.plt
|
@@ -196,46 +426,40 @@ files:
|
|
196
426
|
- plot/tiff.plt
|
197
427
|
- plot/wmbw.tbl
|
198
428
|
- plot/wmcolor.tbl
|
199
|
-
- spec/app_spec.rb
|
200
|
-
- spec/configuration_spec.rb
|
201
|
-
- spec/drawing_spec.rb
|
202
|
-
- spec/
|
203
|
-
- spec/
|
204
|
-
- spec/
|
205
|
-
- spec/
|
206
|
-
- spec/
|
429
|
+
- spec/microstation/app_spec.rb
|
430
|
+
- spec/microstation/configuration_spec.rb
|
431
|
+
- spec/microstation/drawing_spec.rb
|
432
|
+
- spec/microstation/functions_spec.rb
|
433
|
+
- spec/microstation/tag_set_spec.rb
|
434
|
+
- spec/microstation/template_spec.rb
|
435
|
+
- spec/microstation/text_node_spec.rb
|
436
|
+
- spec/microstation/text_spec.rb
|
207
437
|
- spec/microstation_spec.rb
|
208
|
-
- spec/scanner_spec.rb
|
209
|
-
- spec/spec_app.rb
|
210
438
|
- spec/spec_helper.rb
|
211
|
-
|
212
|
-
|
213
|
-
-
|
214
|
-
|
215
|
-
|
216
|
-
licenses: []
|
217
|
-
post_install_message:
|
439
|
+
homepage: https://github.com/dsisnero/microstation
|
440
|
+
licenses:
|
441
|
+
- MIT
|
442
|
+
metadata: {}
|
443
|
+
post_install_message:
|
218
444
|
rdoc_options:
|
219
|
-
- --
|
220
|
-
-
|
445
|
+
- "--title"
|
446
|
+
- TestMicrostation Documentation
|
447
|
+
- "--quiet"
|
221
448
|
require_paths:
|
222
449
|
- lib
|
223
450
|
required_ruby_version: !ruby/object:Gem::Requirement
|
224
|
-
none: false
|
225
451
|
requirements:
|
226
|
-
- -
|
452
|
+
- - ">="
|
227
453
|
- !ruby/object:Gem::Version
|
228
454
|
version: '0'
|
229
455
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
-
none: false
|
231
456
|
requirements:
|
232
|
-
- -
|
457
|
+
- - ">="
|
233
458
|
- !ruby/object:Gem::Version
|
234
459
|
version: '0'
|
235
460
|
requirements: []
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
summary: this is a gem that wraps Bentley Microstation using the WIN32OLE library.
|
461
|
+
rubygems_version: 3.2.33
|
462
|
+
signing_key:
|
463
|
+
specification_version: 4
|
464
|
+
summary: A ruby gem to control and automate Bentley Microstation using win32ole
|
241
465
|
test_files: []
|
data/.gemtest
DELETED
File without changes
|
data/README.txt
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
= microstation
|
2
|
-
|
3
|
-
http://github.com/dsisnero/microstation
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
this is a gem that wraps Bentley Microstation using the WIN32OLE
|
8
|
-
library.
|
9
|
-
|
10
|
-
== FEATURES/PROBLEMS:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
== SYNOPSIS:
|
15
|
-
text_in_drawing = []
|
16
|
-
Microstation.run do |app|
|
17
|
-
sc = create_scanner do
|
18
|
-
include_color(3)
|
19
|
-
include_level(3)
|
20
|
-
end
|
21
|
-
app.open_drawing('./test.dgn') do |drawing|
|
22
|
-
drawing.scan_text do |text|
|
23
|
-
text.reverse! if text =~ /Reverse/ # things that modify thetext_in_drawing
|
24
|
-
puts text.to_s
|
25
|
-
end
|
26
|
-
drawing.scan( sc) do |ele|
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
drawing.save_as_pdf
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
== REQUIREMENTS:
|
36
|
-
|
37
|
-
An installed version of Microstation
|
38
|
-
|
39
|
-
== INSTALL:
|
40
|
-
|
41
|
-
* sudo gem install microstation
|
42
|
-
|
43
|
-
== DEVELOPERS:
|
44
|
-
|
45
|
-
After checking out the source, run:
|
46
|
-
|
47
|
-
$ rake
|
48
|
-
|
49
|
-
This task will install any missing dependencies, run the tests/specs,
|
50
|
-
and generate the RDoc.
|
51
|
-
|
52
|
-
== LICENSE:
|
53
|
-
|
54
|
-
(The MIT License)
|
55
|
-
|
56
|
-
Copyright (c) 2012 FIX
|
57
|
-
|
58
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
59
|
-
a copy of this software and associated documentation files (the
|
60
|
-
'Software'), to deal in the Software without restriction, including
|
61
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
62
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
63
|
-
permit persons to whom the Software is furnished to do so, subject to
|
64
|
-
the following conditions:
|
65
|
-
|
66
|
-
The above copyright notice and this permission notice shall be
|
67
|
-
included in all copies or substantial portions of the Software.
|
68
|
-
|
69
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
70
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
71
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
72
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
73
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
74
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
75
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'virtus'
|
2
|
-
|
3
|
-
module Microstation
|
4
|
-
|
5
|
-
module Attribute
|
6
|
-
|
7
|
-
|
8
|
-
class Base < Virtus::Attribute::Object
|
9
|
-
|
10
|
-
accept_options :is_hidden, :prompt, :readonly
|
11
|
-
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
class String < Base
|
16
|
-
|
17
|
-
primitive ::String
|
18
|
-
|
19
|
-
end
|
20
|
-
|
21
|
-
class Integer < Base
|
22
|
-
end
|
23
|
-
|
24
|
-
class Float < Base
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class Hash
|
2
|
-
|
3
|
-
|
4
|
-
def map_v
|
5
|
-
reduce({}) do |result, array|
|
6
|
-
k,v = array
|
7
|
-
new_val = yield v
|
8
|
-
result.merge( k => new_val)
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def map_k
|
13
|
-
reduce({}) do |result, array|
|
14
|
-
k,v = array
|
15
|
-
new_k = yield k
|
16
|
-
result.merge(new_k => v)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def map_kv
|
21
|
-
reduce({}) do |result, array|
|
22
|
-
new_k,new_v = yield array
|
23
|
-
result.merge(new_k => new_v)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|