🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"Generate Macro vs Generate Attributes"

User: "sgenzer"
Altair Employee
Updated by Jocelyn

Hi...having a bit of trouble with my old friend Generate Macro.  I'm trying to create a macro called "subSelector" that is used in Select Subprocess.  Here's what I try to do:

 

subSelector                                 if(missing(eval(%{loopAtt})),1,2)

 

[%{loopAtt} is macro of a Loop Attributes operator that this is inside of]

 

This does not work - I get an error saying that it is not able to evaluate eval(%{loopAtt}).  However if I do the exact same thing in Generate Attributes, I have no trouble.  Of course this is annoying - I need to generate the attribute, Extract Macro, and then get rid of the attribute.  Help?  I'm in this situation more than you would think.  And why does Select Subprocess not have more functionality like Branch?  I like Select Subprocess better because of its flexibility (more than one option) but this macro thing gets in the way.

 

Thanks.


Scott

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "sgenzer"
    Altair Employee
    OP

    oh geez - ignore that post (delete?).  I just realized the problem.  Never mind.  Not enough coffee this morning.

     

    Scott