PLMCoreReference.ListOccurrences()PLMCoreReference.UpdateListOccurrences()Updates occurrences for a given root object of a structure. Calls made to ListOccurrences provides accurate results. SignaturePLMCoreReference.UpdateListOccurrences() ExampleThe following script checks if the list of instances is updated. let ref (VPMReference)
let inst, inst2 (VPMInstance)
inst = new("VPMReference", "MyNewRef", root)
if inst <> NULL
inst2 = new("VPMInstance", "Instance2", root, inst.Reference )
root.UpdateListOccurrences()
let l (List)
l = inst.Reference.ListOccurrences(root)
if (l.Size() <> 2)
Report("Error", "UpdateListOccurrences function failed")"
PLMEntity.ImplementsOperation()PLMEntity.ListInstances()RefreshEntities()The RefreshEntities function performs a selective refresh following server-side changes. Notes:
Arguments
Example
let lEntities(List)
let oRoot(VPMReference)
set oRoot = GetEditorRoots("VPMReference")->GetItem(1)
lEntities.Append(oRoot)
RefreshEntities(lEntities,True)
| ||||||||||||||||||||||