Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Macro: Multiple hotspots, different ID's

$
0
0

Hi Everyone,

 

I am currently having difficulties finishing a Macro that I have developed so far. The purpose of the Macro is to modify the current 'object information'.

 

Here are the requiremets:

 

 

Example

 

Name

 

ID

 

Explanation

Hotspot7

 

7

 

hot0007

 

single Hotspot

Hotspot 7 (3x used)

 

7

7
7

 

hot0007

hot0007a
hot0007b

 

Multiples of the same hotspot

 

 

 

 

Difficulty

 

I have a Loop, it selects all elements based on the criteria, IF Statements proof the elements based on the number of digits and if the element isDigit() or not (some Hotspot contain a letter, eg. 7A).

 

How do I create the possibility to record the count for every hotspot that is used?

Once the count exists how can the macro automatically add an 'a' to the 2nd Iteration, a 'b' for the 3rd, a 'c' for the 4th and so on...

 

Are array's possible in Isodraw Macro Language?

I thought of creating a variable for every hotspot available...but, I have no idea if that works, where to start and I think it is impossible as all variables need to be predefined at the beginning...

 

Any help is greatly appreciated!

 

Thanks

 

Alan


Viewing all articles
Browse latest Browse all 1645

Trending Articles



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