I've recently upgraded from v10 to X4.
I was used to the material.dat file to change my window labels from RS (right sliding) to XO.
Is there a way to do this without using "specify label"?
Printable View
I've recently upgraded from v10 to X4.
I was used to the material.dat file to change my window labels from RS (right sliding) to XO.
Is there a way to do this without using "specify label"?
Hmmmm:
Probably a lot more trouble then you want to get into. But yes, you can using a Ruby Macro.
Chief's Automatic label appends a RS on Right Sliders. Their Auto label cannot be changed, but can be replaced.
Make a Ruby macro that looks for the parameter window_type_name, if it is: "Right Sliding" replace the last two letters in auto label with XO, if not just pass through auto label .
Put this macro in the window default label under special.
This is the only way other than Manual. I expect you may not not want to go to this extend, but if so, let me know and I"ll furnish a template?
OTOH -- you still can still change the Material.Dat file in X5 and I assume X4
Ha... That's funny. I'm pretty sure I looked for the material.dat file, but must have missed it because something else was pressing at that moment.
Thanks for letting me know the material.dat file is still available. That made my year!
Gerry, I have been trying to write a macro to replace the "RS" with "XO" and I can't seem to figure out how to do it.
Would you have one that you could share?
There's probably a "hundred" different ways,"depending". Here's a line to substitute XO for RS in the automatic_label variable.
automatic_label.gsub(/RS/,'XO')
You can use this line in a macro, then use that macro either in the default or individual window label field.
Thank you Gerry. I couldn't get it to work with automatic_label.
I was able to get type_code.gsub(/RS/,'XO') to work.