pycatia.dnb_fastener_interfaces.fastener_group¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_fastener_interfaces.fastener_group.FastenerGroup(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectFastenerGroup- property colour: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Color(long iColor) (Write Only)Sets the color of the fasteners.Example:This example sets the Color type of all the fasteners toredredCol =16711680 ‘Encoded RGB color within long integer (R=255 G=0B=0)MyFastenerGroup.Color = redCol
- Return type:
int
- get_count(id_name: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetCount(CATBSTR IDName) As longReturns the number of entities in the fastener group of theType.Parameters:oNumOfEntitiesThe number of EntitiesExample:This example gets number of welds in the fastenerGroupDim NumberOfWeldsNumberOfWelds = MyFastenerGroup.GetCount(“DELMIASpotWeld”)This example gets number of FastenerGroups in the fastenerGroupDim NumberOfGroupsNumberOfGroups = MyFastenerGroup.GetCount(“DELMIAFastenerGroup”)
- Parameters:
id_name (str) –
- Return type:
int
- get_items(id_name: str, o_list_of_entities: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetItems(CATBSTR IDName,CATSafeArrayVariant oListOfEntities)Returns the entities in the fastener group of the type which is input.which are direct children onlyExample:This example gets welds in the fastener GroupDim NumberOfWeldsNumberOfWelds = MyFastenerGroup.GetItems(“DELMIASpotWeld”)This example gets the FastenerGroups in the fastener GroupDim NumberOfGroupsNumberOfGroups = MyFastenerGroup.GetItems(“DELMIAFastenerGroup”)
- Parameters:
id_name (str) –
o_list_of_entities (tuple) –
- Return type:
None
- get_joined_part_names(o_list_of_parts: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetJoinedPartNames(CATSafeArrayVariant oListOfParts)Returns the list of part names joined by fastener.Parameters:oListOfPartsThe list of partsExample:This example gets list of parts joined by fastenerDim NumberOfPartsDim JoiningParts()NumberOfParts = MyFastenerGroup.NumberOfJoiningPartsReDim JoiningParts(NumParts-1)MyFastenerGroup.GetJoinedPartNames(JoiningParts)
- Parameters:
o_list_of_parts (tuple) –
- Return type:
None
- get_part(index: int) Product ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPart(short index) As ProductReturns the product at the specified index from the list of parts joined byfastener group.Parameters:indexIndex should be greater than equal to 1.Example:This example gets the part at index 1Dim MyProduct As ProductSet MyProduct = MyFastenerGroup.GetPart(1)
- Parameters:
index (int) –
- Return type:
- hide() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Hide()Hides all the entities in the fastener group.Example:This example hides all the welds in the fastener GroupMyFastenerGroup.Hide
- Return type:
None
- number_of_joining_parts() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func NumberOfJoiningParts() As longReturns the number of parts joined by the fastener group.Parameters:oNumOfPartsThe number of partsExample:This example gets number of parts joined by fastenerDim NumberOfPartsNumberOfParts = MyFastenerGroup.NumberOfJoiningParts
- Return type:
int
- show() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Show()Shows all the entities in the fastener group.Example:This example shows all the welds in the fastener GroupMyFastenerGroup.Show
- Return type:
None
- property style: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Style(CATBSTR iStyle) (Write Only)Sets the CGR Style representation for the Spot Welds in the 3DViewer.Parameters:iStyleTypeof the CGR Style to be used for representation.The valid set of Styles are :-As specified in XML in tools-options pageExample:This example sets the CGR Style type of all the fasteners toSphere provided it is available in XML fileMyFastenerGroup.Style = “Sphere”
- Return type:
str
- property symbol: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Symbol(CATBSTR iColor) (Write Only)Sets the symbol for representation for the Spot Welds in the 3DViewer.Parameters:iSymbolTypeof the symbol to be used for representation.The valid set of symbols are :-CROSSPLUSCONCENTRICCOINCIDENTFULLCIRCLEFULLSQUARESTARDOTSMALLDOTExample:This example sets the Symbol type of all the fasteners toFULLSquareMyFastenerGroup.Symbol = “FULLSQUARE”
- Return type:
str