HyperX.Scripting.Python.Api
The HyperX Scripting Library for Python
Loading...
Searching...
No Matches
hyperx.api.SizingMaterialCol Class Reference
Inheritance diagram for hyperx.api.SizingMaterialCol:
hyperx.api.IdEntityCol

Public Member Functions

 __getitem__ (self, int index)
 __init__ (self, _api.SizingMaterialCol sizingMaterialCol)
 __iter__ (self)
 __len__ (self)
bool AddSizingMaterial (self, int materialId)
 Add a hyperx.api.SizingMaterial by materialId to the list of sizing materials.
bool AddSizingMaterial (self, item1=None)
bool AddSizingMaterial (self, str name)
 Add a hyperx.api.SizingMaterial by name to the list of sizing materials.
types.TernaryStatus AddSizingMaterialsById (self, tuple[int] materialIds, bool ignoreMissingMaterials=False)
 Add a set of hyperx.api.SizingMaterial by materialIds to the list of sizing materials.
types.TernaryStatus AddSizingMaterialsByName (self, tuple[str] materialNames, bool ignoreMissingMaterials=False)
 Add a set of hyperx.api.SizingMaterial by materialNames to the list of sizing materials.
bool Contains (self, int id)
bool Contains (self, item1=None)
bool Contains (self, str name)
 Check if the list of sizing materials contains a material by name.
SizingMaterial Get (self, int id)
SizingMaterial Get (self, item1=None)
SizingMaterial Get (self, str name)
 Get a sizing material by name.
None RemoveAllSizingMaterials (self)
 Remove all hyperx.api.SizingMaterial from the list of sizing materials.
bool RemoveSizingMaterial (self, int materialId)
 Remove a hyperx.api.SizingMaterial by materialId from the list of sizing materials.
bool RemoveSizingMaterial (self, item1=None)
bool RemoveSizingMaterial (self, str name)
 Remove a hyperx.api.SizingMaterial by name from the list of sizing materials.
types.TernaryStatus RemoveSizingMaterialsById (self, tuple[int] materialIds, bool ignoreMissingMaterials=False)
 Remove a set of hyperx.api.SizingMaterial by materialIds from the list of sizing materials.
types.TernaryStatus RemoveSizingMaterialsByName (self, tuple[str] materialNames, bool ignoreMissingMaterials=False)
 Remove a set of hyperx.api.SizingMaterial by materialNames from the list of sizing materials.
Public Member Functions inherited from hyperx.api.IdEntityCol
 __init__ (self, _api.IdEntityCol idEntityCol)
int Count (self)

Protected Attributes

 _CollectedClass = SizingMaterial
Protected Attributes inherited from hyperx.api.IdEntityCol
 _Entity = idEntityCol

Properties

 SizingMaterialColList = property
Properties inherited from hyperx.api.IdEntityCol
 Ids = property

Constructor & Destructor Documentation

◆ __init__()

hyperx.api.SizingMaterialCol.__init__ ( self,
_api.SizingMaterialCol sizingMaterialCol )

Member Function Documentation

◆ __getitem__()

hyperx.api.SizingMaterialCol.__getitem__ ( self,
int index )

◆ __iter__()

hyperx.api.SizingMaterialCol.__iter__ ( self)

◆ __len__()

hyperx.api.SizingMaterialCol.__len__ ( self)

◆ AddSizingMaterial() [1/3]

bool hyperx.api.SizingMaterialCol.AddSizingMaterial ( self,
int materialId )

Add a hyperx.api.SizingMaterial by materialId to the list of sizing materials.

Returns
False if the material was not found.
Exceptions
InvalidOperationException

◆ AddSizingMaterial() [2/3]

bool hyperx.api.SizingMaterialCol.AddSizingMaterial ( self,
item1 = None )
   Add a `hyperx.api.SizingMaterial` by `materialId` to the list of sizing materials.
Returns
False if the material was not found.
Exceptions
InvalidOperationException
Returns

   Add a `hyperx.api.SizingMaterial` by `name` to the list of sizing materials.
False if the material was not found.
Exceptions
InvalidOperationException

◆ AddSizingMaterial() [3/3]

bool hyperx.api.SizingMaterialCol.AddSizingMaterial ( self,
str name )

Add a hyperx.api.SizingMaterial by name to the list of sizing materials.

Returns
False if the material was not found.
Exceptions
InvalidOperationException

◆ AddSizingMaterialsById()

types.TernaryStatus hyperx.api.SizingMaterialCol.AddSizingMaterialsById ( self,
tuple[int] materialIds,
bool ignoreMissingMaterials = False )

Add a set of hyperx.api.SizingMaterial by materialIds to the list of sizing materials.

Returns
hyperx.api.types.TernaryStatus with information about whether materials were successfully added or failed.
Exceptions
InvalidOperationException

◆ AddSizingMaterialsByName()

types.TernaryStatus hyperx.api.SizingMaterialCol.AddSizingMaterialsByName ( self,
tuple[str] materialNames,
bool ignoreMissingMaterials = False )

Add a set of hyperx.api.SizingMaterial by materialNames to the list of sizing materials.

Returns
hyperx.api.types.TernaryStatus with information about whether materials were successfully added or failed.
Exceptions
InvalidOperationException

◆ Contains() [1/3]

bool hyperx.api.SizingMaterialCol.Contains ( self,
int id )

Reimplemented from hyperx.api.IdEntityCol.

◆ Contains() [2/3]

bool hyperx.api.SizingMaterialCol.Contains ( self,
item1 = None )
   Check if the list of sizing materials contains a material by name.
Returns
False if the material does not exist in the database or is not in the list of sizing materials.

Reimplemented from hyperx.api.IdEntityCol.

◆ Contains() [3/3]

bool hyperx.api.SizingMaterialCol.Contains ( self,
str name )

Check if the list of sizing materials contains a material by name.

Returns
False if the material does not exist in the database or is not in the list of sizing materials.

Reimplemented from hyperx.api.IdEntityCol.

◆ Get() [1/3]

SizingMaterial hyperx.api.SizingMaterialCol.Get ( self,
int id )

Reimplemented from hyperx.api.IdEntityCol.

◆ Get() [2/3]

SizingMaterial hyperx.api.SizingMaterialCol.Get ( self,
item1 = None )

Get a sizing material by name.

Exceptions
ArgumentExceptionThrows if the material is not in the database or if the material is not in the list of sizing materials.

Reimplemented from hyperx.api.IdEntityCol.

◆ Get() [3/3]

SizingMaterial hyperx.api.SizingMaterialCol.Get ( self,
str name )

Get a sizing material by name.

Exceptions
ArgumentExceptionThrows if the material is not in the database or if the material is not in the list of sizing materials.

Reimplemented from hyperx.api.IdEntityCol.

◆ RemoveAllSizingMaterials()

None hyperx.api.SizingMaterialCol.RemoveAllSizingMaterials ( self)

Remove all hyperx.api.SizingMaterial from the list of sizing materials.

◆ RemoveSizingMaterial() [1/3]

bool hyperx.api.SizingMaterialCol.RemoveSizingMaterial ( self,
int materialId )

Remove a hyperx.api.SizingMaterial by materialId from the list of sizing materials.

Returns
False if the material is not in the list of sizing materials.

◆ RemoveSizingMaterial() [2/3]

bool hyperx.api.SizingMaterialCol.RemoveSizingMaterial ( self,
item1 = None )
   Remove a `hyperx.api.SizingMaterial` by `materialId` from the list of sizing materials.
Returns
False if the material is not in the list of sizing materials.

   Remove a `hyperx.api.SizingMaterial` by `name` from the list of sizing materials.
False if the material is not in the list of sizing materials.
Exceptions
InvalidOperationException

◆ RemoveSizingMaterial() [3/3]

bool hyperx.api.SizingMaterialCol.RemoveSizingMaterial ( self,
str name )

Remove a hyperx.api.SizingMaterial by name from the list of sizing materials.

Returns
False if the material is not in the list of sizing materials.
Exceptions
InvalidOperationException

◆ RemoveSizingMaterialsById()

types.TernaryStatus hyperx.api.SizingMaterialCol.RemoveSizingMaterialsById ( self,
tuple[int] materialIds,
bool ignoreMissingMaterials = False )

Remove a set of hyperx.api.SizingMaterial by materialIds from the list of sizing materials.

Returns
hyperx.api.types.TernaryStatus with information about whether materials were successfully removed or failed.
Exceptions
InvalidOperationException

◆ RemoveSizingMaterialsByName()

types.TernaryStatus hyperx.api.SizingMaterialCol.RemoveSizingMaterialsByName ( self,
tuple[str] materialNames,
bool ignoreMissingMaterials = False )

Remove a set of hyperx.api.SizingMaterial by materialNames from the list of sizing materials.

Returns
hyperx.api.types.TernaryStatus with information about whether materials were successfully removed or failed.
Exceptions
InvalidOperationException

Member Data Documentation

◆ _CollectedClass

hyperx.api.SizingMaterialCol._CollectedClass = SizingMaterial
protected

Property Documentation

◆ SizingMaterialColList

hyperx.api.SizingMaterialCol.SizingMaterialColList = property
static

The documentation for this class was generated from the following file:
  • C:/Dev/HyperX/HyperX/HyperX.Scripting.Wrapper/hyperx/api/__init__.py