-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyr-AttachPS.mcr
83 lines (66 loc) · 1.44 KB
/
Myr-AttachPS.mcr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#Version 8
#BeginDescription
Last Modified by: OBOS ([email protected])
OR - 1.0 - Initial Version
#End
#Type O
#NumBeamsReq 0
#NumPointsGrip 0
#DxaOut 1
#ImplInsert 1
#FileState 1
#MajorVersion 1
#MinorVersion 0
#KeyWords
#BeginContents
/// <summary Lang=en>
/// Attacheds Property Sets
/// </summary>
/// <insert>
///
/// </insert>
/// <remark Lang=en>
///
/// </remark>
/// <version value="1.0" date="13.11.19"></version>
/// <history>
/// OR - 1.0 - 13.11.19 - Pilot version
/// </hsitory>
//if(_bOnInsert)
//{
// return;
//}
Entity entities[]=Group().collectEntities(true, Sheet(), _kModel);
int sheetsChanged = 0;
for (int e = 0; e < entities.length(); e++) {
Sheet sh = (Sheet) entities[e];
String propSetName = "SheetData";
int propSetExists = (sh.availablePropSetNames().find(propSetName) != -1);
if (propSetExists)
{
int propSetIsAttached = sh.attachPropSet(propSetName);
sheetsChanged++;
}
}
reportMessage("\n" + sheetsChanged + " sheets got property sets added");
eraseInstance();
return;
#End
#BeginThumbnail
#End
#BeginMapX
<?xml version="1.0" encoding="utf-16"?>
<Hsb_Map>
<lst nm="TslIDESettings">
<lst nm="HostSettings">
<dbl nm="PreviewTextHeight" ut="L" vl="1" />
</lst>
<lst nm="{E1BE2767-6E4B-4299-BBF2-FB3E14445A54}">
<lst nm="BreakPoints" />
</lst>
</lst>
<lst nm="TslInfo" />
<unit ut="L" uv="millimeter" />
<unit ut="A" uv="radian" />
</Hsb_Map>
#End