In this example, the sample checks the segments crossing
FZ1.
let ListSpace(List)
let segment_name(String)
let space_name(String)
let space_occurrence(ProductOccurrence)
segment_name=my_segment.Name
if ( segment_name.Search("FZ1",1,true) > 0 )
{
my_segment.ListCrossedSpaces(ListSpace)
for space_occurrence inside ListSpace
{
space_name = space_occurrence.Name
if ( space_name.Search("FZ1",1,true) > 0 )
{
Message(segment_name+" in space "+space_occurrence.Name )
}
}
}