{"id":3928,"date":"2019-02-12T16:10:10","date_gmt":"2019-02-12T16:10:10","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/1-utilities-and-user-commands\/setevparam\/"},"modified":"2025-07-29T14:24:25","modified_gmt":"2025-07-29T19:24:25","slug":"setevparam","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/setevparam\/","title":{"rendered":"setevparam"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>\u00a0Set an event with additional structure message data based on a specification file and provided index-value pairs.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>setevparam<\/strong> &lt;eventname&gt; &lt;specfile&gt; &lt;index1&gt; &lt;val1&gt; [index2] [val2] \u2026<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td>\n<p>eventname<\/p>\n<\/td>\n<td>\n<p>Specify the event name to\u00a0set.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>specfile<\/p>\n<\/td>\n<td>\n<p>Specify the file that defines the structure of the event data.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>index[x]<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the index indicating the structure element.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>val[x]<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the value to store at the index.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>setevparam<\/strong> reply_event \/specs\/event.spec 010424<\/p>\n<p>The above command sets the event \u2018reply_event\u2019 and puts into the first index, index[0], a value of &#8217;10&#8217; and the element at 4 in the struct, index[4], a value of &#8217;24&#8217;.<\/p>\n<p>Sample spec file: short short long char short int short float<\/p>\n<p>Details: With the above example and sample spec file, we would send that whole structure with the first short at the top being a 10 and the fifth element being a 24.<\/p>\n<p>A sample of how the data would look being sent:<\/p>\n<p>short = 10 short = 0 long = 0 char = 0 short = 24 int = 0 short = 0 float = 0<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>You do not need to fill out the entire structure, just the elements you need. Also, if you specify an index, you must provide a value. Command line indexing starts at 0.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: \u00a0Set an event with additional structure message data based on a specification file and provided index-value pairs. Enter: setevparam &lt;eventname&gt; &lt;specfile&gt; &lt;index1&gt; &lt;val1&gt; [index2] [val2] \u2026 Where: eventname Specify the event name to\u00a0set. specfile Specify the file that defines the structure of the event data.\u00a0 index[x] Optional. Specify the index indicating the structure element. [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3928","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3928"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3928\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}