IPaletteGroup

class IPaletteGroup

Bases: ImpactCOMWrapperBase

Description:

Represents a group of IPalette objects.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property from_master_template

Gets from_master_template.

Description:

Determines if the palette group is from a master template drawing.

Returns:

The value of from_master_template.

Return type:

from_master_template (bool)

property full_name

Gets full_name.

Description:

Gets and sets the name of the palette group.

Returns:

The value of full_name.

Return type:

full_name (str)

property palettes

Gets Palettes.

Description:

An IPalettes collection representing all the palettes in this group.

Returns:

The value of Palettes.

Return type:

palettes (IPalettes)

add(palette)
Description:

Adds a palette to the palette group.

Remarks:

If the specified palette is not from the drawing that this palette group belongs to an error will occur.

Parameters:

palette (IPalette) – The palette to add to the palette group.

delete(palette)
Description:

Removes a palette from the palette group.

Remarks:

There must be at least two palettes defined in the palette group before a call to this method is made. So that there will always be one palette in the palette group.

Parameters:

palette (IPalette) – The palette to delete from the palette group.