Python Wpf Palette Builder
Class full path: NemAll_Python_Palette.PythonWpfPaletteBuilder
Implementation of the Python WPF palette builder
Functions
AddAngleValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a angle value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddAreaFixtureCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add area fixture catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
|
required |
name
|
str
|
|
required |
value
|
str
|
|
required |
page
|
int
|
|
required |
expanderName
|
str
|
|
required |
rowName
|
str
|
|
required |
bEnabled
|
bool
|
|
required |
height
|
int
|
|
required |
width
|
int
|
|
required |
fontFaceCode
|
int
|
|
required |
AddAreaValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a area value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddBarDiameter(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add an bar diameter value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddBendingRollerValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a bending roller value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddBrickTileCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a brick/tile catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddButton(description, name, eventId, page, expanderName, rowName, bEnabled, height, width, fontStyle, fontFaceCode)
Add a button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
eventId
|
int
|
Value holds the event ID pressing the button |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontStyle
|
int
|
Font size: 0=small, 1=extra small, 2=large |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddCheckboxValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a checkbox value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddColorValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a color value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddComboBoxValue(description, name, value, listValues, ctrlType, valueType, page, expanderName, rowName, bEnabled, height, width, fontFaceCode, backgroundColor)
Add a combo box value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value |
required |
listValues
|
str
|
List values |
required |
ctrlType
|
PaletteCtrlType
|
Control type |
required |
valueType
|
PaletteValueType
|
Value type |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
|
required |
AddConcreteCoverValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a concrete cover value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddConcreteGrade(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a concrete grade value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddConcreteGradeCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a concreteGrade catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddDoubleValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a double value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddFaceStyleValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a face style combobox to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
ID name |
required |
value
|
int
|
Selected value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddFactoryCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a factory precastcatalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddFixtureCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a fixture precastcatalog reference - all, only point, line or area
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddFixtureValues(descriptionPath, descriptionGroup, descriptionElement, name, fixture, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add the fixture values
Parameters:
Name | Type | Description | Default |
---|---|---|---|
descriptionPath
|
str
|
Description of the path value |
required |
descriptionGroup
|
str
|
Description of the group value |
required |
descriptionElement
|
str
|
Description of the element value |
required |
name
|
str
|
Value name |
required |
fixture
|
FixtureProperties
|
Properties of the fixture |
required |
page
|
int
|
Pate |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddHatchValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a hatch combobox to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
ID name |
required |
value
|
int
|
Selected value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddInsulationCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a insulation catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddIntValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add an integer value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddLayer(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a layer value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddLengthValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a length value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddLineFixtureCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add line fixture catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
|
required |
name
|
str
|
|
required |
value
|
str
|
|
required |
page
|
int
|
|
required |
expanderName
|
str
|
|
required |
rowName
|
str
|
|
required |
bEnabled
|
bool
|
|
required |
height
|
int
|
|
required |
width
|
int
|
|
required |
fontFaceCode
|
int
|
|
required |
AddMaterialButton(description, name, value, buttonType, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a material button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
String of material |
required |
buttonType
|
int
|
Button type (0: simple material button, 1: mat button + switch off button) |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddMeshGroup(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a mesh group value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddMeshType(description, name, value, page, expanderName, rowName, bEnabled, meshGroup, height, width, fontFaceCode)
Add a mesh type value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
meshGroup
|
int
|
Mesh group |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddNormCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a norm catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPage(name, description)
Add a page to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
ID name |
required |
description
|
str
|
Description text (localized) |
required |
AddPatternValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a pattern combobox to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
ID name |
required |
value
|
int
|
Selected value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPenValue(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a pen value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPicture(description, name, pictureName, libPath, orientation, page, expanderName, rowName)
Add a picture to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description used for the tooltip |
required |
name
|
str
|
ID name |
required |
pictureName
|
str
|
Name of the picture |
required |
libPath
|
str
|
Library path |
required |
orientation
|
int
|
Orientation (0:LEFT, 1:MIDDLE, 2:RIGHT) |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
AddPictureButton(description, name, value, eventId, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value |
required |
eventId
|
int
|
Value holds the event ID pressing the button |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPictureButtonList(description, name, value, picturePath, pictureList, valueList, textList, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture button list to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value holds the selected picture button in buttons |
required |
picturePath
|
str
|
Path of pictures |
required |
pictureList
|
str
|
Picture list holds the images for the buttons - example: a.png|b.png|c.png |
required |
valueList
|
str
|
Value list of possible values - example: 0|1|2 |
required |
textList
|
str
|
Text list for the tooltips |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPictureComboBox(description, name, value, picturePath, pictureList, valueList, textList, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture combobox to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value holds the selected picture button in buttons |
required |
picturePath
|
str
|
Path of pictures |
required |
pictureList
|
str
|
Picture list holds the images for the buttons - example: a.png|b.png|c.png |
required |
valueList
|
str
|
Value list of possible values - example: 0|1|2 |
required |
textList
|
str
|
Text list for the tooltips |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPictureResourceButton(description, name, value, eventId, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value holds the resource ID |
required |
eventId
|
int
|
Value holds the event ID pressing the button |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPictureResourceButtonList(description, name, value, pictureList, valueList, textList, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture resource button list to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value holds the selected picture button in buttons |
required |
pictureList
|
str
|
Picture list holds the images for the buttons - example: 16433|16441|16449 |
required |
valueList
|
str
|
Value list of possible values - example: 0|1|2 |
required |
textList
|
str
|
Text list for the tooltips |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPictureResourceComboBox(description, name, value, pictureList, valueList, textList, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a picture resource combobox to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value holds the selected picture button in buttons |
required |
pictureList
|
str
|
Picture list holds the images for the buttons - example: 16433|16441|16449 |
required |
valueList
|
str
|
Value list of possible values - example: 0|1|2 |
required |
textList
|
str
|
Text list for the tooltips |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPlaneReferencesButton(description, name, planeRefs, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a plane references button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
planeRefs
|
BasePlaneReferences
|
Plane references |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddPointFixtureCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add point fixture catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
|
required |
name
|
str
|
|
required |
value
|
str
|
|
required |
page
|
int
|
|
required |
expanderName
|
str
|
|
required |
rowName
|
str
|
|
required |
bEnabled
|
bool
|
|
required |
height
|
int
|
|
required |
width
|
int
|
|
required |
fontFaceCode
|
int
|
|
required |
AddPrecastElementTypeCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a precastElementType catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value int (catIdx) |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddRadioButton(radioButtonGroupDescription, radioButtonGroupName, radioButtonDescription, value, selectedValueInGroup, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a radio button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
radioButtonGroupDescription
|
str
|
Radio button group description |
required |
radioButtonGroupName
|
str
|
Radio button group ID name |
required |
radioButtonDescription
|
str
|
Radio button description |
required |
value
|
object
|
Double value of this radio button |
required |
selectedValueInGroup
|
object
|
Selected value of radio button group |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddRefPointButton(description, name, refPointId, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a reference point button to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
refPointId
|
int
|
Reference point ID (1,...,9) |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddSeparator(page, expanderName)
Add a separator to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
AddSteelGrade(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a steel grade value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddStringValue(description, name, str, page, expanderName, rowName, bEnabled, height, width, fontFaceCode, backgroundColor)
Add a string value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
str
|
str
|
String |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
|
required |
AddStroke(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a stroke value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
int
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddSurfaceCatalogRef(description, name, value, page, expanderName, rowName, bEnabled, height, width, fontFaceCode)
Add a norm catalog reference
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
str
|
Value string |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false height Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddText(description, value, page, expanderName, rowName, bEnabled, height, width, fontStyle, fontFaceCode)
Add a text
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
value
|
str
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontStyle
|
int
|
Font size: 0=small, 1=extra small, 2=large |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
AddVolumeValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a volume value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
AddWeightValue(description, name, value, page, expanderName, rowName, bEnabled, minValue, maxValue, intervalValue, asSlider, height, width, fontFaceCode, backgroundColor)
Add a weight value to the palette
Parameters:
Name | Type | Description | Default |
---|---|---|---|
description
|
str
|
Description |
required |
name
|
str
|
Value name |
required |
value
|
float
|
Value |
required |
page
|
int
|
Page index |
required |
expanderName
|
str
|
Expander section name |
required |
rowName
|
str
|
Name of the row |
required |
bEnabled
|
bool
|
Control is enabled: true/false |
required |
minValue
|
float
|
Minimal value |
required |
maxValue
|
float
|
Maximal value |
required |
intervalValue
|
float
|
Interval value for the slider |
required |
asSlider
|
bool
|
Show as slider: true/false |
required |
height
|
int
|
Control height, only used for a row |
required |
width
|
int
|
Control width, only used for a row |
required |
fontFaceCode
|
int
|
Face code: 0=normal, 1=bold, 2=italic, 4=underline |
required |
backgroundColor
|
Union[List[int], VecIntList]
|
Background color of the control as red, green, blue |
required |
IsConcreteCoverPaletteUpdate(cover)
Check for a palette update due to a new concrete cover
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cover
|
float
|
Concrete cover |
required |
Returns:
Type | Description |
---|---|
bool
|
Palette update: true/false |
Reset()
Reset the data
__init__(element)
Copy constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
PythonWpfPaletteBuilder
|
Element to copy |
required |