Results 1 to 13 of 13
  1. #1
    Join Date
    Aug 2002
    Location
    Indianapolis, IN, USA
    Posts
    1,813

    Change Macro to all CAPS

    Does anyone know how to do that? I don't understand why they don't default to CAPITAL letters, as most designers specify in CAPS. I tried rewriting the macro with capital letters but it destroys the macro. I don't understand Ruby very well, although there may be a way to do it.

    This should read:

    AS-BUILT, 1ST FLOOR 1/8" = 1'

    Click image for larger version. 

Name:	TEXT.jpg 
Views:	267 
Size:	34.2 KB 
ID:	58110
    Adam Gibson, CKD, CBD
    Indianapolis, IN, USA
    Chief X6

  2. #2
    Join Date
    Oct 2009
    Posts
    904
    Chief's name/value pairs can not be changed. But if you're using a Ruby macro, append .upcase to any string. Ruby macros can not use the Chief name/value pairs but most of that info is also available in objects with a few exceptions.
    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
    Aug 2002
    Location
    Indianapolis, IN, USA
    Posts
    1,813
    I'm just trying to use labels on layout boxes. but it looks inconsistent to have lower case letters.
    Adam Gibson, CKD, CBD
    Indianapolis, IN, USA
    Chief X6

  4. #4
    Join Date
    Oct 2009
    Posts
    904
    I'm talking about the same thing. The automatic_label name/value pair for the layout box IS available to Ruby -- so you can upcase it.
    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.

  5. #5
    Join Date
    Aug 2002
    Location
    Indianapolis, IN, USA
    Posts
    1,813
    Would you mind uploading a pic of what you did? I'd sure appreciate it!
    Adam Gibson, CKD, CBD
    Indianapolis, IN, USA
    Chief X6

  6. #6
    Join Date
    Oct 2009
    Posts
    904
    Attached is youtube video

    http://youtu.be/H1JDyk6lNwA

    Also remember to view SSA videos #1570 & 1323

    Have fun
    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.

  7. #7
    Join Date
    Aug 1999
    Location
    Austin, Texas, USA
    Posts
    6,117
    Gerry, that video was interesting, thank you but you can also bypass all of that by simply selecting the layout view, open its dialog, go to the "Label" tab, check "Specify Label" and then type in anything in any case directly without Ruby or macros.

    I can see perhaps the value of setting a macro for repetitive things but this seems like way too many clicks and opportunities to fail when a direct input would suffice.

    I still do not use layout labels at all, and just type my own presently so I directly use Rich Text so I can control appearance, font and color with very few clicks.

    DJP

    David Jefferson Potter

    Chief Architect ® Trainer, Beta Tester, Draftsman, Author of "Basic Manual Roof Editing" and Problem Solver
    Win7 Ultimate x64 & XP Pro x32, 500 Gb Samsung SSD
    AMD Phenom II X6 1090T, 8Gb DDR3 RAM, PNY 760 GTX

    Chief 7-X6, Home Designer versions 7-2014
    3101 Shoreline Drive #2118, Austin, Texas 78728-4446
    Office Phone:512-518-3161
    Main E mail: david@djpdesigns.net
    Web Site:http://djpdesigns.net
    My You Tube Channel
    Help is just an e mail or call away!

  8. #8
    Join Date
    Aug 2002
    Location
    Indianapolis, IN, USA
    Posts
    1,813
    Gerry,

    Thank you for the huge amount of effort in teaching this! Way beyond the call of duty.

    Makes me think that Chief should simply add an option to change the case, as I'd use layout box labels all the time if I could.
    Adam Gibson, CKD, CBD
    Indianapolis, IN, USA
    Chief X6

  9. #9
    Join Date
    Mar 2006
    Location
    Ashland, OR
    Posts
    1,386
    Thanks Gerry,
    I had not figured how to use the + to string macros together. I now see how to use this instead of using multiple macros.

    It's also a nice trick to convert to upper case.

    I wish I had more time to devote to this; I only learn more about Ruby when I'm challenged by the necessity of the situation.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	all caps.JPG 
Views:	154 
Size:	102.2 KB 
ID:	58132  
    Last edited by billemery; 03-19-2013 at 10:15 PM.
    Bill Emery

    OR CCB# 105259
    Ashland Home Design LLC
    Bill@AshlandHome.Net

  10. #10
    Join Date
    Oct 2009
    Posts
    904
    Glad to see some use:

    As you see, usage is limited only by Chief's limits to information. Unfortunately, I doubt if we'll see any expansion until we see something similar in Chief's near competitors, which is still a couple of years out.

    BTW, a even more compact, single line, method is to use the #{...} function. I thought this was more straight forward to understand.
    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.

  11. #11
    Join Date
    Aug 2002
    Location
    Indianapolis, IN, USA
    Posts
    1,813
    If I understand correctly, which is doubtful, Bill's method requires a new macro for each unique label? Gerry's provides the ability to add an all-caps box scale to the default label?
    Adam Gibson, CKD, CBD
    Indianapolis, IN, USA
    Chief X6

  12. #12
    Join Date
    Oct 2009
    Posts
    904
    Quote Originally Posted by alobartn View Post
    If I understand correctly, which is doubtful, Bill's method requires a new macro for each unique label? Gerry's provides the ability to add an all-caps box scale to the default label?
    I definitely don't understand your statement. The two macros are the same and used the same. Layout boxes do not have default labels, so a macro would need in put into each layout box label. This doesn't mean that you have to recreate a macro each time. Just create once (or save) in your layout template and it will be available in all new layouts and sheets. --- Need more explanation of where your going?
    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.

  13. #13
    Join Date
    Jun 2005
    Location
    Southern California
    Posts
    4,874
    Thanks Gerry, you are the Ruby master.
    Perry
    P.H. DESIGNS L.L.C.
    Eastvale Calif.
    Alienware, liquid cooled
    Ver 10-"X6 x64 SSA
    WIN 8.1 PRO 64 bit
    Nvidia GTX780 3GB.
    i7 920 2.67-- 12 GB Ram
    40" led monitor

 

 

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
  •