Cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing a group in Programming

Experimenter
Experimenter

Is there a way to callout the active group instead of a specific group.  In the example below I would like to change the callout of group 1000 to be whatever group is currently active.

 

$ ========================================

$ Group Element using Node

{~1893}

$ ----- Entity Selection - Select Node(s) Used by Entities for Group

<@19503>1000<OK>

$ ========================================

$ Group Nodes on Element

{~1888}

$ ----- Entity Selection - Select Element(s) Using Entities for Group

<@19503>1000<OK>

$ ========================================

$ Regenerate

{~2002}

2 REPLIES

Re: Referencing a group in Programming

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

There doesn't appear to be the equivalent of ACTID() for a group, which would have been the easiest method to achieve your result.  I did a quick test (using a looped Program File) to see if there is an undocumented value (up to 100) for the active group using ACTID, but there is not.

However, how did the group number get set in the first place?  If you use say, #ASK or #DEF (or a counter you have defined, if creating multiple groups) to define the group number in the first place, then the same variable can be used to later select the group.

Re: Referencing a group in Programming

Experimenter
Experimenter

The example was generated by recording a macro.  When it came to the point of selecting my elements I picked by group and selected 1000.  My knowledge of API programming is very limited.  I usually just record macros and then tweak them manually.