IFDEF Macro used on Object placed in Faceplate zone -SA-Project

Hi,

I try to use the IFDEF macro to hide/unhide objects within genie where the genie is paced on an Faceplate zone. 

The genie is referenced with ?__EquipmentRef? on the faceplate.

For the objects in the genie I use expression like: ((%Equipment%.PALL - %Equipment%.PLR)/(%Equipment%.PHR - %Equipment%.PLR))*100, for the scaling etc. This is working well.

Then I try to use IFDEF(%Equipment%.PALL,0,1) as expression to control the Appearance, this seems not to be working. 

I've also tryed to use TagGetProperty function within the IFDEF macro, still unsuccessful. 

Is there some restrictions to the IFDEF, or am I missing something else? :-)

Thanks for any inputs,

Rune

Parents
  • IFDEF is a compile time substitution macro. It basically checks to see if the passed in "tag" exists. Because %equipment% is being given ?__equipmentref? (a super genie parameter ref), the tag/equip is unknown at compile time. The faceplates are driven via equipment context changes from the faceplate, thus, why it needs to be dynamic.
Reply
  • IFDEF is a compile time substitution macro. It basically checks to see if the passed in "tag" exists. Because %equipment% is being given ?__equipmentref? (a super genie parameter ref), the tag/equip is unknown at compile time. The faceplates are driven via equipment context changes from the faceplate, thus, why it needs to be dynamic.
Children
No Data