Results 1 to 14 of 14
-
10-18-2013, 11:45 AM #1
Ruby calculation of Current Floor
Since CA hasn't given us a Ruby Attribute for "Current Floor Number", I've devised a way that works for most cases.
Current_Floor = ((floor_elevation+120)/120).round(0)
This can be placed in any macro that has a Room as the Owner (Room Label works). It's based on the idea that the floor height is in the range of 6'-14' and that the First Floor is at elevation 0.00Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-18-2013, 11:48 AM #2
Very clever Joe.
D. Scott Hall (The Bridge Troll)
San Diego, Ca.
Chief X-5 w/ Win 7
Asus P6T X58 ATX Core i7
Intel Core i7 920
6GB (3X2) DDR3 1600
NVIDIA GeForce 580 GTX
The videos we watch are not 100% gold, but if we find a gold nugget, the time spent viewing has a value.
We can please some of the people some of the time, but we can't please all the people all of the time..... but I will keep trying.
If you are interested in keeping abreast of any new videos, please subscribe to my channel at YOUTUBE...... channel is ds hall
-
10-18-2013, 11:53 AM #3
Now if I could just figure out a way to get "Current Layout Page". Unfortunately there's nothing similar to floor_elevation to use as a base for the calculation in the Layout.
Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-18-2013, 06:28 PM #4
You know that when I first read this my first thought was JC was being kookier than me. But as I was just taking a shower thinking about this, I have a use for this macro right now.
Between JC's nutty ideas and Perry's "I hate to type" macros, there is a lot of potential here. CA should start to seriously get into the macro business. Thanks JC, hey JC, you want to play golf this Thursday at the RBI at 1:30 with Bruce, The Mailman and myself? I already have a tee time, and yes, drinks are on me after the round.D. Scott Hall (The Bridge Troll)
San Diego, Ca.
Chief X-5 w/ Win 7
Asus P6T X58 ATX Core i7
Intel Core i7 920
6GB (3X2) DDR3 1600
NVIDIA GeForce 580 GTX
The videos we watch are not 100% gold, but if we find a gold nugget, the time spent viewing has a value.
We can please some of the people some of the time, but we can't please all the people all of the time..... but I will keep trying.
If you are interested in keeping abreast of any new videos, please subscribe to my channel at YOUTUBE...... channel is ds hall
-
10-18-2013, 07:25 PM #5Originally Posted by dshall;486411
[B
Joe:
Don't see why your going to all the trouble - I just use a hidden macro on each floor: $floor = 1, etc. Works fine for cals, summaries, purges, layout etc.
Works fine for layout pages too, if you want to put a hidden macro on each page of your layout template --- messyLast edited by gteacher; 10-18-2013 at 07:44 PM. Reason: Added layout comment
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.
-
10-19-2013, 05:29 AM #6Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-19-2013, 06:32 AM #7
That's True, But since the macros update with every screen update. A single mouse spin will execute the macro sequence a couple of time and go through all macro which usually straighten things out -- fine from there on. Just have renumber to do a update when you move to a new floor. Things work fine after that.
Worst problem is when you have to trouble shoot through the macro management DBX. Things got out of sequence and do not always reflect properly -- Have to keep jumping out and in. So many limitations, still not sure this is useful to the average user?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.
-
10-19-2013, 06:43 AM #8Now if I could just figure out a way to get "Current Layout Page".
-
10-19-2013, 08:35 AM #9Registered User Promoted
- Join Date
- Jan 2010
- Posts
- 361
Seems to me that macros are generally less than desirable for core function. I don't believe there's a long history of industry success stories of software that requires users to write macros prevailing over software that does stuff OOB.
I'm thinking that labeling details, compiling schedules, tabulating finishes, ought to be automatic OOB with some room for adjustment. I hate making a sheet index for every job - and many jurisdictions require one, so it's not a personal preference, its a standard of the community. As such, a program that represents itself as being able to produce construction docs ought to be able to produce a sheet index.
There's a whole list of schedule and label issues in Chief, frustrating to know the data is there, the program could access\present the data, it just chooses not to.
As an occasional user, just a couple hours a day, it's hard to justify investing say 80 hour\year (2 hours \work day, 1 day per week of use) to save say 30 minutes per job, 20 jobs\year=10 hours return on my 80 hour investment. So I continue to manually build a sheet index, wrestle with goofy schedules, label details and sections that should be labeling themselves and resent CA all the while. Sometimes I get so resentful, or invest so much time fine tuning stuff that I have to skip an upgrade to recover my investment of time over 2 or 3 years.
FWIW, CA is already a tough program to use as an office standard. I have tried hiring drafters and found the the degree of idiosyncracy is huge. Work produced by one drafter is so different than work produced by another - where are CAD details, are details live, how do they use annosets. I didn't have these issue hiring drafters using OtherCAD. There is a plentiful supply of trained\experienced drafters and standards seem easier to implement. In fairness, this may be due to my trying to use freelance drafters instead of hourly staff and obviously 2d is simpler than 3d, but it's surely frustrating to deal with and might be assuaged by CA having really robust processes and tools for the production of documents.Matt Kennedy
Win7, v2 beta thru x6
-
10-20-2013, 07:46 AM #10Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-20-2013, 08:24 AM #11
Perhaps I should explain further how I need to use the actual layout page number.
I have a macro that reads a simple text file containing sheet ID's and Titles - my sheet index for the project. This text file is in the Plan Folder for each project so I can modify it at will for each project.
G-1 TITLE SHEET
G-2 GENERAL NOTES
A-1 FIRST FLOOR PLAN
A-2 SECOND FLOOR PLAN
....
....
....
The macro places the text into a set of Ruby Global Arrays:
$Sheet_ID = ["0", "G-1", "G-2", "A-1", "A-2", .............]
$Sheet_Title = ["BLANK", "TITLE SHEET", "GENERAL NOTES", "FIRST FLOOR PLAN", "SECOND FLOOR PLAN", ........]
I have a macro on page 0 containing the following:
$Sheet_ID[$Current_Layout_Page]
Then, if the the Current Layout Page = 2 that macro returns
"G-2"
I have another macro on page 0 that displays the entire index. When I change the text file the Sheet Index and the Sheet_IDs get updated automatically.
All of the above is set up automatically in my Default Layout.
The problem currently is that $Current_Layout_Page simply isn't available. %page% doesn't work for this purpose.
What I'm trying to do is to automate a lot of what CA has left out of the box. Ruby can help do that but only if the needed attributes are available. Currently the Sheet Index works fine because it doesn't need to know what page it is on. But Sheet_ID needs a page number so I have to put a text box on each page with the correct number in a unique macro for that page $Sheet_ID[1], $Sheet_ID[2], $Sheet_ID[3], $Sheet_ID[4], etc. That makes it much more difficult to add/move/delete sheets.
There are some users that have the ability to do this type of programming. While it might not be cost effective for every user to learn Ruby and do the setup - it would be cost effective to have one of us do it for them.Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-20-2013, 09:23 AM #12
To be Clear(er)
You can achieve this by:
Putting a macro(s) on your layout template sheets. One macro on each sheet in a text box somewhere on that sheet, returning nil. Text box will be invisible.
example sheet one:
$layout = 1
nil
example -- sheet two:
$layout = 2
nil
etc. etc. --- twenty sheets -- twenty macros in your macro DBX.
On Sheet 0 - in the title block:-- use this macro
"#{$Sheet_ID[$layout] - #{$Sheet_Title[$layout]"
Problem is that your now have 21 macros in the layout template plus your ID macro(s). Maybe acceptable to some but not to most. If the macros could be hidden or put in a separate folder - maybe acceptable - but you can't. My point that the present limitations are just not acceptable and that Chief is just not listening. (or -- doesn't want to). Sooo - for the average user -- beware!!!!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.
-
10-20-2013, 10:11 AM #13
Gerry,
I guess we're saying the same thing. If CA would provide a Ruby Attribute current_layout_page we would only need 1 macro on page 0.Joseph P. Carrick, Architect - AIA
ASUS M51AC Desktop, core i7-4770 CPU @3.4 GHZ, 16 GB Ram, NVidea GT640 with60M with 3GB GM, 30" HiRes (2560/1600) Monitor , (2) 24" ASUS Monitors
Windows 8.1
Chief Architect 9, 10, X1, X3, X4 Premium, X5 Premium, X6 Premium
-
10-20-2013, 10:41 AM #14Gerry
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.