Results 1 to 6 of 6

Thread: window labels

  1. #1
    Join Date
    May 2008
    Posts
    22

    window labels

    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"?
    Tim Palmer
    Phoenix, AZ
    Chief 8, 9 & 10 newbie X4 & X5

  2. #2
    Join Date
    Oct 2009
    Posts
    904
    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
    Last edited by gteacher; 09-05-2012 at 05:31 PM.
    Gerry

    NewCraft Home Services

    Design/ Compliance Review
    PE, X6 , Sketchup 8, TurboCad Pro 20
    -----------------------------------
    ASUS P9X79D, i7-3820, GTX680 w/4gb
    -----------------------------
    If the Government would just cut down more d*** trees, I'd have a much better view of the forest.

  3. #3
    Join Date
    May 2008
    Posts
    22
    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!
    Tim Palmer
    Phoenix, AZ
    Chief 8, 9 & 10 newbie X4 & X5

  4. #4
    Join Date
    Aug 2011
    Location
    Tri-Cities (Kennewick) WA
    Posts
    22
    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?
    Anthony St.Martin
    509-396-4636
    www.sageland-design.com
    asm@sageland-design.com
    Chief X5 - Started with v.8

  5. #5
    Join Date
    Oct 2009
    Posts
    904
    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.
    Gerry

    NewCraft Home Services

    Design/ Compliance Review
    PE, X6 , Sketchup 8, TurboCad Pro 20
    -----------------------------------
    ASUS P9X79D, i7-3820, GTX680 w/4gb
    -----------------------------
    If the Government would just cut down more d*** trees, I'd have a much better view of the forest.

  6. #6
    Join Date
    Aug 2011
    Location
    Tri-Cities (Kennewick) WA
    Posts
    22
    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.
    Anthony St.Martin
    509-396-4636
    www.sageland-design.com
    asm@sageland-design.com
    Chief X5 - Started with v.8

 

 

Posting Permissions

  • Login or Register to post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •