1 |
< |
Imports SldWorks |
2 |
< |
Imports SWPublished |
3 |
< |
Imports SwConst |
1 |
> |
Imports SolidWorks.Interop |
2 |
> |
Imports SolidWorks.Interop.swconst |
3 |
> |
Imports SolidWorks.Interop.swpublished |
4 |
|
|
5 |
|
' la classe des propriétés |
6 |
|
|
9 |
|
Dim iSwApp As SldWorks.SldWorks |
10 |
|
Dim userAddin As MAGIC.Magic |
11 |
|
Dim handler As RCPageHandler |
12 |
< |
Dim ppage As PropertyManagerPage2 |
12 |
> |
Dim ppage As sldworks.PropertyManagerPage2 |
13 |
|
|
14 |
|
#Region "Property Manager Page Controls" |
15 |
|
'Groupes |
16 |
< |
Dim group1 As PropertyManagerPageGroup |
17 |
< |
Dim group2 As PropertyManagerPageGroup |
18 |
< |
Dim group3 As PropertyManagerPageGroup |
16 |
> |
Dim group1 As sldworks.PropertyManagerPageGroup |
17 |
> |
Dim group2 As sldworks.PropertyManagerPageGroup |
18 |
> |
Dim group3 As sldworks.PropertyManagerPageGroup |
19 |
|
|
20 |
|
''Controles |
21 |
< |
Dim combo1 As PropertyManagerPageCombobox |
22 |
< |
Dim combo2 As PropertyManagerPageCombobox |
23 |
< |
Dim combo3 As PropertyManagerPageCombobox |
24 |
< |
Dim selection1 As PropertyManagerPageSelectionbox |
21 |
> |
Dim combo1 As sldworks.PropertyManagerPageCombobox |
22 |
> |
Dim combo2 As sldworks.PropertyManagerPageCombobox |
23 |
> |
Dim combo3 As sldworks.PropertyManagerPageCombobox |
24 |
> |
Dim selection1 As sldworks.PropertyManagerPageSelectionbox |
25 |
|
Dim CheckBox1 As SldWorks.PropertyManagerPageCheckbox |
26 |
|
Dim CheckBox2 As SldWorks.PropertyManagerPageCheckbox |
27 |
< |
Dim selection2 As PropertyManagerPageSelectionbox |
28 |
< |
Dim selection3 As PropertyManagerPageSelectionbox |
29 |
< |
Dim Numberbox1 As PropertyManagerPageNumberbox |
30 |
< |
Dim Numberbox2 As PropertyManagerPageNumberbox |
31 |
< |
Dim NumberboxD1 As PropertyManagerPageNumberbox |
32 |
< |
Dim NumberboxD2 As PropertyManagerPageNumberbox |
33 |
< |
Dim NumberboxD3 As PropertyManagerPageNumberbox |
34 |
< |
Dim NumberboxD4 As PropertyManagerPageNumberbox |
35 |
< |
Dim NumberboxD5 As PropertyManagerPageNumberbox |
36 |
< |
Dim NumberboxD6 As PropertyManagerPageNumberbox |
37 |
< |
Dim Numberbox5 As PropertyManagerPageNumberbox |
38 |
< |
Dim Numberbox6 As PropertyManagerPageNumberbox |
39 |
< |
Dim Label1 As PropertyManagerPageLabel |
40 |
< |
Dim Label2 As PropertyManagerPageLabel |
41 |
< |
Dim Label3 As PropertyManagerPageLabel |
42 |
< |
Dim Label4 As PropertyManagerPageLabel |
43 |
< |
Dim Label5 As PropertyManagerPageLabel |
44 |
< |
Dim Label6 As PropertyManagerPageLabel |
45 |
< |
Dim Label7 As PropertyManagerPageLabel |
46 |
< |
Dim Label8 As PropertyManagerPageLabel |
47 |
< |
Dim Label9 As PropertyManagerPageLabel |
48 |
< |
Dim Label10 As PropertyManagerPageLabel |
49 |
< |
Dim Label11 As PropertyManagerPageLabel |
50 |
< |
Dim Label12 As PropertyManagerPageLabel |
51 |
< |
Dim LabelD3 As PropertyManagerPageLabel |
52 |
< |
Dim LabelD4 As PropertyManagerPageLabel |
53 |
< |
Dim LabelD5 As PropertyManagerPageLabel |
54 |
< |
Dim LabelD6 As PropertyManagerPageLabel |
27 |
> |
Dim selection2 As sldworks.PropertyManagerPageSelectionbox |
28 |
> |
Dim selection3 As sldworks.PropertyManagerPageSelectionbox |
29 |
> |
Dim Numberbox1 As sldworks.PropertyManagerPageNumberbox |
30 |
> |
Dim Numberbox2 As sldworks.PropertyManagerPageNumberbox |
31 |
> |
Dim NumberboxD1 As sldworks.PropertyManagerPageNumberbox |
32 |
> |
Dim NumberboxD2 As sldworks.PropertyManagerPageNumberbox |
33 |
> |
Dim NumberboxD3 As sldworks.PropertyManagerPageNumberbox |
34 |
> |
Dim NumberboxD4 As sldworks.PropertyManagerPageNumberbox |
35 |
> |
Dim NumberboxD5 As sldworks.PropertyManagerPageNumberbox |
36 |
> |
Dim NumberboxD6 As sldworks.PropertyManagerPageNumberbox |
37 |
> |
Dim Numberbox5 As sldworks.PropertyManagerPageNumberbox |
38 |
> |
Dim Numberbox6 As sldworks.PropertyManagerPageNumberbox |
39 |
> |
Dim Label1 As sldworks.PropertyManagerPageLabel |
40 |
> |
Dim Label2 As sldworks.PropertyManagerPageLabel |
41 |
> |
Dim Label3 As sldworks.PropertyManagerPageLabel |
42 |
> |
Dim Label4 As sldworks.PropertyManagerPageLabel |
43 |
> |
Dim Label5 As sldworks.PropertyManagerPageLabel |
44 |
> |
Dim Label6 As sldworks.PropertyManagerPageLabel |
45 |
> |
Dim Label7 As sldworks.PropertyManagerPageLabel |
46 |
> |
Dim Label8 As sldworks.PropertyManagerPageLabel |
47 |
> |
Dim Label9 As sldworks.PropertyManagerPageLabel |
48 |
> |
Dim Label10 As sldworks.PropertyManagerPageLabel |
49 |
> |
Dim Label11 As sldworks.PropertyManagerPageLabel |
50 |
> |
Dim Label12 As sldworks.PropertyManagerPageLabel |
51 |
> |
Dim LabelD3 As sldworks.PropertyManagerPageLabel |
52 |
> |
Dim LabelD4 As sldworks.PropertyManagerPageLabel |
53 |
> |
Dim LabelD5 As sldworks.PropertyManagerPageLabel |
54 |
> |
Dim LabelD6 As sldworks.PropertyManagerPageLabel |
55 |
|
|
56 |
|
|
57 |
|
|
156 |
|
RCCode.RCselection2 = selection2 |
157 |
|
|
158 |
|
|
159 |
+ |
|
160 |
|
Label6 = group1.AddControl(13, swPropertyManagerPageControlType_e.swControlType_Label, "Dimension D1", swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge, swAddControlOptions_e.swControlOptions_Visible + swAddControlOptions_e.swControlOptions_Enabled, "La longueur D1") |
161 |
|
RCCode.LabelD1 = Label6 |
162 |
|
'Numberbox3, D1 |
296 |
|
selection3.SetSelectionFilters(filter) |
297 |
|
End If |
298 |
|
RCCode.RCselection3 = selection3 |
299 |
+ |
selection3.Style = swconst.swPropMgrPageSelectionBoxStyle_e.swPropMgrPageSelectionBoxStyle_HScroll |
300 |
|
|
301 |
|
Label12 = group2.AddControl(37, swPropertyManagerPageControlType_e.swControlType_Label, "Épaisseur", swPropertyManagerPageControlLeftAlign_e.swControlAlign_LeftEdge, swAddControlOptions_e.swControlOptions_Visible + swAddControlOptions_e.swControlOptions_Enabled, "Épaisseur de la coque") |
302 |
|
|