Results 46 to 60 of 63
Thread: Ruby Console
Hybrid View
-
05-11-2011, 02:41 AM #1
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
-
05-11-2011, 02:45 AM #2Registered User Promoted
- 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 somethingTim Grindlay
SurTec Group Consultants Ltd
New Zealand
X4
-
05-11-2011, 02:49 AM #3
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
-
05-11-2011, 02:48 AM #4Registered User Promoted
- 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 macroTim Grindlay
SurTec Group Consultants Ltd
New Zealand
X4
-
05-11-2011, 02:52 AM #5Registered User Promoted
- 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
-
05-11-2011, 02:55 AM #6
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.auGlenn
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
-
05-11-2011, 02:56 AM #7Registered User Promoted
- 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
-
05-11-2011, 02:58 AM #8Registered User Promoted
- Join Date
- Jul 2007
- Posts
- 288
Excellent, Thanks, 3 decimal places.
Tim Grindlay
SurTec Group Consultants Ltd
New Zealand
X4
-
05-11-2011, 02:58 AM #9Registered User Promoted
- 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
-
05-11-2011, 03:00 AM #10
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
-
05-13-2011, 03:26 PM #11
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?
-
05-13-2011, 05:16 PM #12
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.
-
05-13-2011, 05:17 PM #13
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.
-
05-16-2011, 12:19 PM #14
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 X4Gerry
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.
-
06-09-2011, 08:06 PM #15Architect
- 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?