Page 4 of 5 FirstFirst ... 2345 LastLast
Results 46 to 60 of 63

Thread: Ruby Console

Hybrid View

  1. #1
    Join Date
    Aug 1999
    Location
    Sydney Australia
    Posts
    4,044
    Tim,

    I don't know what I was doing wrong before, but the macro now works in both the Room Label Defaults dbx and the Room Specification dbx.
    Make sure the name you type in the Room Name box is exactly the same as your Macro Name in the Text Macro Management dbx and put the macro name in % befor and after.
    Last edited by Glenn Woodward; 05-11-2011 at 02:46 AM.
    Glenn

    Chief X5
    www.glennwoodward.com.au

    Windows 7 - Home Premium
    Intel i7-920
    Gigabyte GA-EX58-UD3R
    6 Gb DDR3 1600MHz
    EVGA GTX285 1GbDDR3
    1TB Sata HD

  2. #2
    Join Date
    Jul 2007
    Posts
    288
    So, I have created a text macro called:
    Finished Floor Elevation

    In value box I have:
    (finished_floor_elevation/100).round(3)

    In Room Label DBX I have:

    FL: %Finished Floor Elevation%

    What shows up in my room label is:
    FL: (finished_floor_elevation/100).round(3)


    Clearly I am missing something
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  3. #3
    Join Date
    Aug 1999
    Location
    Sydney Australia
    Posts
    4,044
    Ah...
    Go to the Text Macro Management dbx.
    Select the macro.
    Select Edit.
    Down the bottom, do you have Evaluate checked and Context: Owner.

    I don't have a tick and it works.
    Glenn

    Chief X5
    www.glennwoodward.com.au

    Windows 7 - Home Premium
    Intel i7-920
    Gigabyte GA-EX58-UD3R
    6 Gb DDR3 1600MHz
    EVGA GTX285 1GbDDR3
    1TB Sata HD

  4. #4
    Join Date
    Jul 2007
    Posts
    288
    I am still using the first example, that shows up level as zero, that works o.k.

    I have noticed with this last macro, there is a tick in the Valid column, there is none in the first macro
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  5. #5
    Join Date
    Jul 2007
    Posts
    288
    sorry , I didn,t see your previous post about room spec. box, but I have no check in evaluation box, (although I have tried all combinations Owner / reference etc.)
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  6. #6
    Join Date
    Aug 1999
    Location
    Sydney Australia
    Posts
    4,044
    Tim,

    You have to have Evaluate checked and Context: Owner.

    Email me a simple plan and I will have a look and email it back.

    glenn@glennwoodward.com.au
    Glenn

    Chief X5
    www.glennwoodward.com.au

    Windows 7 - Home Premium
    Intel i7-920
    Gigabyte GA-EX58-UD3R
    6 Gb DDR3 1600MHz
    EVGA GTX285 1GbDDR3
    1TB Sata HD

  7. #7
    Join Date
    Jul 2007
    Posts
    288
    Success... , I just understood your post, I ticked Evaluate, context Owner... tick in Valid column is gone and it works - it is showing 0.0 I will build second floor and see if decimal place extends. Thanks
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  8. #8
    Join Date
    Jul 2007
    Posts
    288
    Excellent, Thanks, 3 decimal places.
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  9. #9
    Join Date
    Jul 2007
    Posts
    288
    Thanks for your help, it is getting quite late here, I will have to call it a night. Cheers.
    Tim Grindlay
    SurTec Group Consultants Ltd
    New Zealand
    X4

  10. #10
    Join Date
    Aug 1999
    Location
    Sydney Australia
    Posts
    4,044
    Yaaaaahhhhhhhhhhhhh!
    Glenn

    Chief X5
    www.glennwoodward.com.au

    Windows 7 - Home Premium
    Intel i7-920
    Gigabyte GA-EX58-UD3R
    6 Gb DDR3 1600MHz
    EVGA GTX285 1GbDDR3
    1TB Sata HD

  11. #11
    Join Date
    Mar 2008
    Location
    Sexsmith
    Posts
    287
    I am sure lots have figured this out already, but regarding Finished floor height versus framing, all I did was eliminate the finished part.. eg. floor_elevation
    I really wish we could input it like we do ceiling height and not have to have it attached to either the default label, or the label name. Is there any ideas?
    Monte Heyn
    X1, X2, X3, X4, X5, X6
    http://www.i4homedesign.ca

  12. #12
    Join Date
    Oct 2009
    Posts
    904
    According to Chief documentation, you can use a text box which is at least 50% within the room or use a text box with a leader line pointed inside of room. I tried it and it does seem to work. The room label bit works because you have to preselect the room before you config the label. the macro execute when you exit the dbx while object is still selected. No way to do that with a text box.

    Have a question in to tech support on this. Don't hold your breath!!
    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
    Oct 2009
    Posts
    904
    Correction --- DOES NOT
    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.

  14. #14
    Join Date
    Oct 2009
    Posts
    904
    Sometimes, you engage fingers before brain.

    I need to correct my previous correction of a correction.

    As far as rooms are concerned, since there is no way to select them via a Macros , so you can only use Ruby with the default room label or the specific room label. However, Chief's global Marcos for a room will work just fine in any text box inside of a room or a text-box w/leader that is inside a room.

    Unfortunately, floor_elevation is not available as a global macro. Some available items are: ceiling height, internal area,dimension,type, volume -- Look under Global-Plan Info. But I believe all of the Chief's global macros are available to RUBY through "owner", but not vise versa.

    Some additions may be made in X4
    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.

  15. #15
    Join Date
    Jun 2003
    Location
    Townsville, Australia
    Posts
    249
    I'm back....
    Haven't used Chief for the past two years... been using Revit exclusively (schools, office buildings, etc). As a result, didn't get much use out of Chief X2 and did not renew my subscription. In recession (again). Back to the home building industry.

    Just downloaded X3 Trial to see if anything new has popped up; and found the Ruby button... which brings up the console and then only errors when the tutorial button is pressed.

    Guess that Ruby is not fully delivered with the Trial version?

    From the posts hereon, is it fair to say that Ruby script text labels are not worth bothering with?

 

 

Tags for this Thread

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
  •