Matrix: I am using Control Macro and HCI to trigger a EHX-Control. How do I find the card/pin information for a control in EHX

I want to trigger a control using a control macro and also a HCI command. How do I find the card/pin GPSF information for a control in EHX? 


EHX shows the three control pins used for each control under Global Options for each control. We also provide a macro script, written in C#. It will open a dialog window but can easily be modified to write these values into a text file.

Import and enable the attached script (control macro) as part of your map and it will display the GPSF card/pin info when you make a download
Once you have the card/pin info you can disable the macro from your map.

Macro for showing Cards / Pins in any version of EHX:

StringBuilder sBuilder = new StringBuilder();
sBuilder.AppendLine("Control Name | Card | Pin");

foreach(EntityObject currentEntity in ControlMacro.GetAllEntities(true))
if(currentEntity.CC_ADV_TYPE == Shared.Enums.DestinationType.Control)
ControlMacro currentControl = ControlMacro.GetControl(currentEntity.EntityID);
sBuilder.AppendLine(currentEntity.CombinedLabel.PadRight(20) + " | " +currentControl.ControlObject.GetGPSF().Card.ToString() +" | " + currentControl.ControlObject.GetGPSF().Pin.ToString());

The string can either be shown as a dialog window:


Or written to file:

System.IO.File.WriteAllText(@"C:\TextFile.txt", sBuilder.ToString());

  File Modified

PNG File image2021-4-8_8-25-55.png

Apr 08, 2021 by

File Show Cards and Pins.ccm Show Cards and Pins.ccm

Apr 06, 2019 by Administrator


This solution was provided to you by Clear-Com via a question submitted to us by customers like you. If your question wasn’t answered, you need help or you have a recommended solution for our database, please send us an email at

The information on this page is owned by Clear-Com and constitutes Clear-Com’s confidential and proprietary information, may be used solely for purposes related to the furtherance of Clear-Com’ business and shall not be disclosed, distributed, copied or disseminated without Clear-Com’s prior written consent. Click Here for Clear-Com's privacy statement.