Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: Macro: Multiple hotspots, different ID's

$
0
0

Hi Trevor,

 

Thanks for responding. Not quite. I need to do the opposite. I need to assign a specific ID as shown in the table in my main post.

 

The problem I am having is creating a macro that can identify if:

 

  • a hotspot already exists.
  • which Iteration of the hotspot is at this moment selected.
  • apply the corresponding ID Name depending on previous iterations already identified.

 

For example, we have 11 Hotspots in total. Hotspots 1-6.

 

Hotspots 1, 2, 3 and 5 are shown once. Hotspot 4 is shown two times and 6 three times.

 

Hotspots 1, 2, 3 and 5 have the following ID Name:

 

1 = hot0001

2 = hot0002

3 = hot0003

5 = hot0005

 

Hotspots 4 and 6 have the following ID Name:

 

4 = hot0004

4 = hot0004a

 

6 = hot0006

6 = hot0006a

6 = hot0006b

 

I already have a Loop which filters the current selection using IF Statements. I have assigned the correct ID Names the only remaining Problem is identifying the same iterations of a given hotspot and assigning a unique ID that complies with the above rule.

 

I hope that explains it better.

 

If needed, I can post a sample of the script in it's current state.

 

Thanks again

 

Alan



Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>