AnsweredAssumed Answered

Rule as argument

Question asked by hjd_uk on Jun 7, 2013
Latest reply on Jun 12, 2013 by MBuehler-esristaff
Hi, is there any way or any plans to have a way to have the ability to pass a rule in as an argument ( in c++ it would be as if passing in a function-pointer as an argument ):

i.e

 RuleA --> color(1,0,0) Shape  RuleB --> color(0,1,0) Shape  RuleC --> color(0,0,1) Shape  RuleD --> color(1,1,0) Shape  SplitAndPopulate( rA, rB )--> split(x){ '0.5 : rA | '0.5 : rB }  Lot--> SplitAndPopulate( RuleA, RuleB ) t(0,10,0) SplitAndPopulate( RuleC, RuleD )


I can pass in strings to a Rule to enable custom asset-placement but it would be very useful to be able to pass in the rule to be used. Maybe something like:

 #-- Utils.cga --- MethodRule( stringRuleName )--> offset(-1,inside) call( stringRuleName )  #-- Lot.cga ---  import utils : "Utils.cga"  RuleA --> Shape  Lot --> utils.MethodRule("RuleA")

Outcomes