开云体育

Re: How to delete a turnout with jython


 

I note that scripting and Java is listed in the layout automation section of the JMRI website. Perhaps that is why I am sensing discomfort with regard to what I thought was a simple programming question. No I do not intend to run scripts to operate an actual layout that would involve deleting turnouts or anything else. However, I do find that working with the layout editor and Panel Pro in general is frustrating and I am exploring alternative approaches to getting things done. For example I have used the AnyRail scripts to set up initial panels and found that the exported file from AnyRail has seemingly added tiny track segments with the incorrect block assignments around turnouts and that requires painstaking editing before signal masts can be placed easily. Additionally, part of the AnyRail to JMRI process involves using a script to place sensor icons. It places them directly over a track segment selection circle, making it almost impossible to select the icon to move it. I have not looked yet but have to believe it is relatively easy to iterate over the sensor icons and change their coordinates. Probably easier to edit the existing script for my own use to permit an offset when adding the sensor icons. But it might turn out to be useful to know how to delete things as part of an editing procedure and that is basically all I was thinking about.
--
-Ralph

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