开云体育

Locked Re: How to change the systemName of a turnout or block in a script? #scripting


 

Steve,

Since block system names have no meaning, is the system name for the block going to be used for the sensor system name?

Dave Sand

----- Original message -----
From: Steve Todd <mstevetodd@...>
Subject: Re: [jmriusers] How to change the systemName of a turnout or block in a script? #scripting
Date: Tuesday, May 02, 2023 9:36 AM

Cliff,
I have the code mostly ready, I'm trying to write up some "how to use" verbiage. I find that putting the system name info last, with a required delimiter, makes this much harder to explain.
I think the simplest solution is to put the SystemName first, followed by the (optional) User Name. This avoids the need for a delimiter, as I'll simply use the number to split the two. Examples might be:
Blocks:
124 Yard Track 1
105 Staging 1 Stop Block
Turnouts:
56 East:Main Crossover
98 Main:MB Samuel Distribution

Your thoughts?

--SteveT

Join [email protected] to automatically receive all group messages.