pycatia.assembly_interfaces.assembly_features¶
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.assembly_interfaces.assembly_features.AssemblyFeatures(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionAssemblyFeaturesA collection of all the AssemblyFeature objects of a product.See also:AssemblyFeature- add_assembly_add(i_body: Body, i_body_comp: Product, i_component: Product) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddAssemblyAdd(Body iBody,Product iBodyComp,Product iComponent) As AssemblyFeatureCreates a new AssemblyBoolean object by adding a body to theassembly.Parameters:iBodyThe body to addiBodyCompThe component that contains the body to addiComponentThe component with respect to which the AssemblyBoolean object tocreate will be positionedReturns:The created AssemblyBoolean objectExample:This example creates the addBody AssemblyBoolean object in theassemblyFeats collection using a body referenced as bodyToAdd contained in thebodyToAddComp component, and positioned with respect to the positioningCompcomponent.Dim addBody As AssemblyBooleanSet addBody = assemblyFeats.AddAssemblyAdd(bodyToAdd, _bodyToAddComp, _itioningComp)
- Parameters:
- Return type:
- add_assembly_hole(i_sketch: Sketch, i_sketch_comp: Product, i_depth: float, i_component: Product) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddAssemblyHole(Sketch iSketch,Product iSketchComp,double iDepth,Product iComponent) As AssemblyFeatureCreates a new AssemblyHole object.Parameters:iSketchThe sketch defining the hole reference plane and anchorpoint.This sketch must contain a single point that defines the hole axis:the hole axis in 3D passes through that point and is normal to the sketchplane.iSketchCompThe component that contains the sketchiDepthThe hole depthiComponentThe component with respect to which the AssemblyHole object tocreate will be positionedReturns:The created AssemblyHole objectExample:This example creates the hole AssemblyHole object in the assemblyFeatscollection using a sketch referenced as holeSketch contained in theholeSketchComp component, with a depth of 60mm, and positioned with respect tothe positioningComp component.Dim hole As AssemblyHoleSet hole = assemblyFeats.AddAssemblyHole(holeSketch, _holeSketchComp,_60,_positioningComp)
- Parameters:
- Return type:
- add_assembly_pocket(i_sketch: Sketch, i_sketch_comp: Product, i_depth: float, i_component: Product) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddAssemblyPocket(Sketch iSketch,Product iSketchComp,double iDepth,Product iComponent) As AssemblyFeatureCreates a new AssemblyPocket object.Parameters:iSketchThe sketch defining the pocket baseiSketchCompThe component that contains the sketchiDepthThe pocket depthiComponentThe component with respect to which the AssemblyPocket object tocreate will be positionedReturns:The created AssemblyPocket objectExample:This example creates the pocket AssemblyPocket object in theassemblyFeats collection using a sketch referenced as pocketSketch contained inthe pocketSketchComp component, with a depth of 20mm, and positioned withrespect to the positioningComp component.Dim pocket As AssemblyPocketSet pocket = assemblyFeats.AddAssemblyPocket(pocketSketch, _pocketSketchComp,_20,_positioningComp)
- Parameters:
- Return type:
- add_assembly_remove(i_body: Body, i_body_comp: Product, i_component: Product) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddAssemblyRemove(Body iBody,Product iBodyComp,Product iComponent) As AssemblyFeatureCreates a new AssemblyBoolean object by removing a body from theassembly.Parameters:iBodyThe body to removeiBodyCompThe component that contains the body to removeiComponentThe component with respect to which the AssemblyBoolean object tocreate will be positionedReturns:The created AssemblyBoolean objectExample:This example creates the removeBody AssemblyBoolean object in theassemblyFeats collection using a body referenced as bodyToRemove contained inthe bodyToRemoveComp component, and positioned with respect to thepositioningComp component.Dim removeBody As AssemblyBooleanSet removeBody = assemblyFeats.AddAssemblyRemove(bodyToRemove,_bodyToRemoveComp,_positioningComp)
- Parameters:
- Return type:
- add_assembly_split(i_splitting_element: Reference, i_splitting_elem_comp: Product, i_split_side: int, i_component: Product) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddAssemblySplit(Reference iSplittingElement,Product iSplittingElemComp,CatSplitSide iSplitSide,Product iComponent) As AssemblyFeatureCreates a new AssemblySplit object.Parameters:iSplittingElementThe face or plane that will split the current bodyiSplittingElemCompThe component that contains the splitting elementiSplitSideThe specification for which side of the current body should be keptat the end of the split operationiComponentThe component with respect to which the AssemblySplit object tocreate will be positionedReturns:The created AssemblySplit objectExample:This example creates the splitByPlane AssemblySplit object in theassemblyFeats collection using a plane referenced as splittingPlane containedin the splittingComp component, in such a way that the material to remove bethe one located in the direction of the splittingPlane normal vector, andpositioned with respect to the positioningCompcomponent.Dim splitByPlane As AssemblySplitSet splitByPlane = assemblyFeats.AddAssemblySplit(splittingPlane, _splittingComp,_catPositiveSide,_positioningComp)
- Parameters:
- Return type:
- item(i_index: cat_variant) AssemblyFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As AssemblyFeatureReturns an AssemblyFeature object using its index or its name from theAssemblyFeatures collection.Parameters:iIndexThe index or the name of the AssemblyFeature object to retrievefrom the AssemblyFeatures collection. As a numerics, this index is the rank ofthe AssemblyFeature object in the collection. The index of the firstAssemblyFeature object in the collection is 1, and the index of the lastAssemblyFeature object is Count. As a string, it is the name you assigned tothe AssemblyFeature object using theAnyObject.Name property.Returns:The retrieved AssemblyFeature objectExample:This example retrieves the last item in the assemblyFeatscollection.Dim lastAssemblyFeat As AssemblyFeatureSet lastAssemblyFeat = assemblyFeats.Item(assemblyFeats.Count)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Remove(CATVariant iIndex)Removes an AssemblyFeature object from the AssemblyFeaturescollection.Parameters:iIndexThe index or the name of the AssemblyFeature object to remove fromthe AssemblyFeatures collection. As a numerics, this index is the rank of theAssemblyFeature object in the collection. The index of the firstAssemblyFeature object in the collection is 1, and the index of the lastAssemblyFeature object is Count. As a string, it is the name you assigned tothe AssemblyFeature object using theAnyObject.Name property.Example:This example removes the last AssemblyFeature object in theassemblyFeats collection.assemblyFeats.Remove(assemblyFeats.Count)
- Parameters:
i_index (cat_variant) –
- Return type:
None