Objects Comparison Fail

Serhat SEVINC

Objects Comparison Fail

Hello, please I need help about the comparison of 2 instances of a "ManufacturingProgram" such as:

(Please check annex picture)

* I point to the Selected ManufacturingProgram via "selection":

Set viaSele = CATIA.ActiveDocument.Selection.Item(1).Value

* I point to same ManufacturingProgram via "Catia Tree":

Set viaTree = CATIA.ActiveDocument.PPRDocument.Processes.Item(1).ChildrenActivities.Item(2).ChildrenActivities.Item(2)

= But Comparison ( If viaSele Is viaTree then ) gives false

(PLEASE CHECK ANNEX PICTURE)

What's wrong? What's the right way to do?

Thank and Regards

Serhat SEVINC

Attachments

  • Object comparison fail.png (206.3k)