pycatia.cat_sch_platform_interfaces.sch_update_instances¶
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.cat_sch_platform_interfaces.sch_update_instances.SchUpdateInstances(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSchUpdateInstancesInterface to update all component instances when the catalog referencecomponent has been changed.- update_all_instances_from_reference(i_comp_local_ref: SchComponent) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub UpdateAllInstancesFromReference(SchComponentiCompLocalRef)Update all the instances of a given local reference in a document. Both thelocal reference and all its instances will be updated to account for anychanges in the corresponding catalog reference.Example:This example illustrates how to update all the schematic componentinstancesin the active document by selecting any one of the instances or theirlocal reference.‘ — get SchUpdateInstances interfaceDim objCurrentDoc As DocumentDim objPrdRoot As ProductDim objSchRoot As SchematicRootDim objUpdateInstances As SchUpdateInstancesSet objCurrentDoc = CATIA.ActiveDocumentSet objPrdRoot = objCurrentDoc.ProductSet objSchRoot = objPrdRoot.GetTechnologicalObject (“SchematicRoot”)Set objUpdateInstances = objSchRoot.GetInteface (“CATIASchUpdateInstances”,objCurrentDoc)‘ — get the local referenceDim objPrdInst As ProductDim objPrdRef As ProductDim objCompRef As SchComponent‘ — get an instance, objPrdInst from the selected set ofobjectsSet objPrdInst = objCurrentDoc.Selection.FindObject(“CATIAProduct”)Set objPrdRef = objPrdInst.ReferenceProductSet objCompRef = objSchRoot.GetInterface (“CATIASchComponent”,objPrdRef)‘ — update all the instancesobjUpdateInstances.UpdateAllInstancesFromReferenceobjCompRef
- Parameters:
i_comp_local_ref (SchComponent) –
- Return type:
None