BrownTiger

Quick and Easy Validator for Andersen 100 Fiberex Windows.

Recommended Posts

The Andersen 100 Series windows [Fiberex] are always popular with a builders. Primarily, they offer different interior and exterior colors, not as ugly as some other Vinyl... Sometimes designer want to know if he is using standard vs custom sizes [adds +$$].

 

So here is a validator macro, that can be assigned as a label or just executed in the tmm

 

Andersen100Macro.thumb.PNG.f4ba6f5e4589385a6330eae7191139cb.PNG

 

Free Macro, enjoy

Code demonstrate use of Ruby arrays, and "any?" method.

 

BT

I also have A200,400, and pella.. But this will get you started if you are not 100% familiar with Ruby.

Andersen100Units.json

  • Upvote 2

Share this post


Link to post
Share on other sites

Thanks, will be informative with what I'm doing currently.

Share this post


Link to post
Share on other sites

To get me started... what do you do with a json file to use it in CA?

Share this post


Link to post
Share on other sites

Go to Text Macro Managment [TMM]  CAD> Text> Text Macro Management

Select Import/

 

I found it odd that settings in ChiefArchitect stored in .ini's, proprietary, xml and even json.

 

  • Upvote 1

Share this post


Link to post
Share on other sites
1 hour ago, parkwest said:

To get me started... what do you do with a json file to use it in CA?

 

If you're being serious, then you're going about this wrong.  That's a terrible place to start trying to learn how to use macros in my opinion.  I'd say the majority of people who take a stab at macros make little to no progress or ultimately fail because they take a poor approach...figuring it out on their own or trying to pick up one little tip at a time.  If you have 2 or 3 years and hundreds of hours to invest reinventing the wheel, by all means, go right ahead, otherwise, I strongly suggest you consider just investing in some one-on-one time with someone to show you the ropes.

 

Its really painful for me to watch some people try to learn one little tip at a time, spend hours experimenting, run into a road block, ask for another tip, spend a few more hours, run into another roadblock, pick up another tip...and I'm thinking to myself...I could have helped you sort those particular issues out in about 15 minutes.  And the thing is that there are forks in the road at every turn.  You have to learn how to use macros in Chief, you have to learn at least a little about Ruby, and most importantly, you have to learn how the 2 work together.  That's where the real challenge lies.  You can master Chief and you can master Ruby and you might still be completely lost when it comes to writing macros in Chief. 

Share this post


Link to post
Share on other sites

No thanks, Michael.  I am still in recovery from autolisp... 

 

I want a CAD program to put out decent con docs that show the workers what needs to be done and to get the states permission to build it, without having to learn a foreign language.  I read topics like this one and wonder when will all the fragmented software programs we use to build a house work together seamlessly.

 

I like CA because my biggest problem building custom homes was getting the client to make their selection choices in a timely manner.

Share this post


Link to post
Share on other sites
36 minutes ago, parkwest said:

No thanks, Michael.  I am still in recovery from autolisp... 

 

I'm curious why you asked the question then?  I see this happen all the time.  You guys ask us for tips and clarification, we give answers, that leads to more questions, we give more answers, and come to find out you have no real intention of actually seriously learning or using it...just playing around.  A little inconsiderate if you ask me, and a big reason why I've become a bit burned out donating my time here.   I don't care if you don't want to invest in hiring someone to help you, that's totally your prerogative.  I'm just suggesting that its the best way of making real progress.  If you decide to go it "on your own", then at least have the decency of not wasting people's time if your questions aren't sincere.  It can take a lot of time and energy to answer questions sometimes. 

Share this post


Link to post
Share on other sites
23 hours ago, BrownTiger said:

Go to Text Macro Managment [TMM]  CAD> Text> Text Macro Management

Select Import/

 

I found it odd that settings in ChiefArchitect stored in .ini's, proprietary, xml and even json.

 

Thank you for your answer.  I didn’t find anything when I did a search in the knowledge base for json files.

Share this post


Link to post
Share on other sites

In response to Alaskan_Son

 who in part stated in a post below:

“If you decide to go it "on your own", then at least have the decency of not wasting people's time if your questions aren't sincere.  It can take a lot of time and energy to answer questions sometimes.”

 

First, let me start out by saying that I for one appreciate the many informative and well thought out posts you have written. Like the contributions of many other regular members here, they provide valuable information and insight to users of this forum. A forum in which all registers members can post their thoughts and read others free of charge or obligation.  

Michael you are a member who openly incorporates (advertises) your commercial connections to Chief in every post. You go so far as providing a link to your Paypal account.  As far as I can tell, no one is holding a gun to your head compelling you to respond with detailed solutions to members’ problems. One fact that is clear Michael, your posts providing information, tips and solutions showcase your Chief skills and therefore are in very real sense, blatant forms of advertising for your services. You are certainly “giving” something to the forums, but you are also “getting” something in return every single time you provide information, tips, or direct solutions. I humbly suggest that your righteous indignation on display here is, to say the least, grossly overstated.……

  • Downvote 2

Share this post


Link to post
Share on other sites
14 hours ago, DanDearborn said:

Michael you are a member who openly incorporates (advertises) your commercial connections to Chief in every post. You go so far as providing a link to your Paypal account.

 

I put that link down in my signature during a time when I was providing a notable amount of free macros, training videos, custom symbols, etc. as a way providing a convenient way for people to support my efforts should they choose to do so and if they wanted to continue to see more of that type of thing, as well as an easy way of knowing how they could make payments for the items I had listed for sale.  I have since changed course a bit with those various offerings but just never adjusted my signature to remove the link since it still comes in handy from time to time.  I have no problem removing it though since it seems to be at least partially disqualifying me from having an opinion on what constitutes proper appreciation for a persons time. 

 

I get the feeling that you don't have the slightest clue or appreciation for the quantity of time and energy some people pour into helping out on the forum.  My statements above were just an honest and straightforward statement about the way I feel after having done so for a number of years, and I should be free to share it. 

 

You're right.  No one is pointing a gun at my head but that shouldn't be a pre-requisite for the right to a personal opinion on the matter.  And my personal opinion is that people want/need help...and some of us spend a lot to give it.  Its not very considerate of somebody to ask for somebody else to take that time out of their day to describe how something works if they actually don't have any real intention of doing anything with it.  That was my point. 

 

And with regard to the rest of my post, I was just offering my personal, professional, and experienced opinion on the matter...I'm not looking for a job, and in fact, I barely have time to help people with private sessions much of the time anyway.  I just know that almost nobody ever makes any real progress in certain areas by fishing for little tips on the forum. 

 

Take my opinion or leave it, I really don't care, but I see it play out all the time.  If I could help solve your problems with a few little tips, I would, but certain things take a lot more than that, and I'm just trying to paint that picture clearly and honestly for people.  Its just become exceedingly clear to me after watching a lot of forum users here make almost no progress year after year after year and then seeing how much progress other people make using more appropriate learning methods in a very short time span, that there is a better way.  I feel like NOT saying things sometimes is actually doing a disservice.  It may not be what people want to hear, but sometimes "free" is a lot more expensive.  In fact, I don't even care if its me that people go to for proper tutelage, and I tell that to people all the time.  I even point out many of the free resources we have at our disposal. The real point is that there are better ways to learn certain things and if someone has the real intent to learn something I want to share with them how they should really be going about doing that.

 

14 hours ago, DanDearborn said:

I humbly suggest that your righteous indignation on display here is, to say the least, grossly overstated.……

 

I'm sorry you feel that way.  Nobody is pointing a gun at your head either.  You can feel free to ignore me in your preferences or just not read my posts, but I'd much rather tell people what they need to hear than what they want to hear.  Again, take it or leave it.  I apologize if my opinion offends you, but I'm not sorry for what I said.  

  • Upvote 1

Share this post


Link to post
Share on other sites

Michael I for one and am sure many others appreciated your knowledge and imput on this site, I value as one of the best Chief users on here and always look forward to your post to review

  • Like 1

Share this post


Link to post
Share on other sites

MEGA DITTO HERE!  Michael's posts have always improved my ability to use Chief.  Thanks!

  • Like 1

Share this post


Link to post
Share on other sites
On 12/29/2018 at 11:09 PM, BrownTiger said:

The Andersen 100 Series windows [Fiberex] are always popular with a builders. Primarily, they offer different interior and exterior colors, not as ugly as some other Vinyl... Sometimes designer want to know if he is using standard vs custom sizes [adds +$$].

 

So here is a validator macro, that can be assigned as a label or just executed in the tmm

 

Andersen100Macro.thumb.PNG.f4ba6f5e4589385a6330eae7191139cb.PNG

 

Free Macro, enjoy

Code demonstrate use of Ruby arrays, and "any?" method.

 

BT

I also have A200,400, and pella.. But this will get you started if you are not 100% familiar with Ruby.

Andersen100Units.json

 

 

And Back ON TOPIC :)

 

Thanks BT appreciate you letting us have a look at stuff like this , may be handy as I have a Client considering Andersen Fiberex at the moment.

 

M.

 

.

  • Upvote 1

Share this post


Link to post
Share on other sites

You are welcome. 

 

I posted these maros as an example. Feel free to roll your own for other types of windows.

This examples shows use of Ruby programming macros: initialization of a string array (%w) and command such as delete, any? etc.

Ruby is not the most intuitive language.. so...

Share this post


Link to post
Share on other sites
18 hours ago, BrownTiger said:

Ruby is not the most intuitive language.. so...

 

Now there's an understatement :)  be easier to use in Chief if you didn't need to know 3 different method of using the same macro in different places ( it seems to me)

Share this post


Link to post
Share on other sites

Ruby is a “dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.”  Matz

 

Really? Natural to read and write?

user_ids = users.map(&:id)

z=[1, 2, 3].map { |element| element if element.even? } .compact

z=[1, 2, 3].each{|x|}

unless !me.here && !you.there ?

  i += 1 else i-=1

end.collect

 

But when I do some complex blocks, mix-ins, some odd rails stuff - my brains literally ceasing to function...

Never happend to me with any other language. PPL see me walking loops, asking oh that is that rails stuff right?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    28035
    Total Members
    6254
    Most Online
    Apollosg
    Newest Member
    Apollosg
    Joined
  • Similar Content

    • By ACADuser
      Looking at the ROOM data I'm not sure where the Room Area variable is.
      Looking at Joe's macro, he used obj.room.internal_area.round(2)
       
      It appears that the variable is already rounded. Not sure if this is new.
      What I wanted is the area the Room polyline is based on.  369.83  --> Measurement
      I see several area variables, but how to get the one I want?
      How do you know what prefix to get the area you want?
       
      Data Type: String
      base_moldings ------------------- size = 1 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      component_moldings ------ size = 0 ---------------------- Collection
      description ------------- "base molding: PVC 4" Base" --- String
      formatted_size ---------- "1x4" ------------------------- String
      length ------------------ 600 in ------------------------ Measurement
      room -------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      cantilever_underside_material --- ------------------------------ NVPublisher
      id -------------------------- 133 --------------------------- Integer
      name ------------------------ "Color - White" --------------- String
      ceiling_elevation --------------- 108 in ------------------------ Measurement
      ceiling_finish_layers ----------- size = 2 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      area -------------------- 373.153214 sq ft -------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "Square Ceiling Tiles" -------- String
      formatted_size ------ "24"x24"x1/2"" ---------------- String
      quantity ------------ 93.5 -------------------------- Measurement
      owner ------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 0.5 in ------------------------ Measurement
      [1] ------------------------- ------------------------------ NVPublisher
      area -------------------- 369.825474 sq ft -------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "Color - White" --------------- String
      formatted_size ------ "" ---------------------------- String
      quantity ------------ 369.825474 sq ft -------------- Measurement
      owner ------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 0 in -------------------------- Measurement
      ceiling_finish_name ------------- "Color - White" --------------- String
      ceiling_insulation -------------- ------------------------------ NVPublisher
      area ------------------------ 369.825474 sq ft -------------- Measurement
      cavity_r_value -------------- 0.0 --------------------------- Float
      continuous_r_value ---------- 0.0 --------------------------- Float
      depth ----------------------- 12 in ------------------------- Measurement
      formatted_size -------------- "12x24x48" batts" ------------- String
      length ---------------------- 48 in ------------------------- Measurement
      num_batts ------------------- 46.25 ------------------------- Measurement
      owner ----------------------- ------------------------------ NVPublisher
      SEE ABOVE --------------- ------------------------------
      width ----------------------- 24 in ------------------------- Measurement
      ceiling_platform_layers --------- size = 1 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      area -------------------- 0 sq ft ----------------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "Steel Stud 24" OC" ----------- String
      formatted_size ------ "" ---------------------------- String
      quantity ------------ 0 ----------------------------- Measurement
      rebar_length ------------ 0 in -------------------------- Measurement
      rebar_size -------------- 0 ----------------------------- Integer
      room -------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 2 in -------------------------- Measurement
      ceiling_thermal_envelope_area --- 369.825474 sq ft -------------- Measurement
      chair_rail_moldings ------------- size = 0 ---------------------- Collection
      crown_moldings ------------------ size = 0 ---------------------- Collection
      custom_pattern_scale ------------ 1.0 --------------------------- Float
      dimensions ---------------------- "14'-10" x 23'-10"" ----------- String
      drawing_group ------------------- default:_35_-_room_fill ------- Symbol
      fill_line_weight ---------------- 1 ----------------------------- Integer
      finished_ceiling_elevation ------ 107.5 in ---------------------- Measurement
      finished_floor_elevation -------- 0.125 in ---------------------- Measurement
      floor_ceiling_group ------------- 1 ----------------------------- Integer
      floor_elevation ----------------- 0 in -------------------------- Measurement
      floor_finish_layers ------------- size = 1 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      area -------------------- 371.216099 sq ft -------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "Floor-C4 Laminate" ----------- String
      formatted_size ------ "1/8" thick" ------------------ String
      quantity ------------ 371.216099 sq ft -------------- Measurement
      owner ------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 0.125 in ---------------------- Measurement
      floor_finish_name --------------- "Floor-C4 Laminate" ----------- String
      floor_insulation ---------------- ------------------------------ NVPublisher
      area ------------------------ 0 sq ft ----------------------- Measurement
      cavity_r_value -------------- 0.0 --------------------------- Float
      continuous_r_value ---------- 0.0 --------------------------- Float
      depth ----------------------- 12 in ------------------------- Measurement
      formatted_size -------------- "12x24x48" batts" ------------- String
      length ---------------------- 48 in ------------------------- Measurement
      num_batts ------------------- 0 ----------------------------- Measurement
      owner ----------------------- ------------------------------ NVPublisher
      SEE ABOVE --------------- ------------------------------
      width ----------------------- 24 in ------------------------- Measurement
      floor_number -------------------- 1 ----------------------------- Integer
      floor_platform_layers ----------- size = 2 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      area -------------------- 0 sq ft ----------------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "OSB-Hrz" --------------------- String
      formatted_size ------ "48"x96"x3/4"" ---------------- String
      quantity ------------ 0 ----------------------------- Measurement
      rebar_length ------------ 0 in -------------------------- Measurement
      rebar_size -------------- 0 ----------------------------- Integer
      room -------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 0 in -------------------------- Measurement
      [1] ------------------------- ------------------------------ NVPublisher
      area -------------------- 0 sq ft ----------------------- Measurement
      material_data ----------- ------------------------------ NVPublisher
      description --------- "Concrete" -------------------- String
      formatted_size ------ "4" thick" -------------------- String
      quantity ------------ 0 cu ft ----------------------- Measurement
      rebar_length ------------ 0 in -------------------------- Measurement
      rebar_size -------------- 0 ----------------------------- Integer
      room -------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      thickness --------------- 4 in -------------------------- Measurement
      floor_thermal_envelope_area ----- 369.825474 sq ft -------------- Measurement
      function ------------------------ "Living" ---------------------- String
      internal_area ------------------- 370 sq ft --------------------- Measurement
      layer --------------------------- rooms ------------------------- Symbol
      layer_line_color ---------------- 2151678207 -------------------- Integer
      layer_line_style ---------------- 111 --------------------------- Integer
      layer_line_weight --------------- 18 ---------------------------- Integer
      layer_set ----------------------- "Floor Plan" ------------------ String
      layer_text_style ---------------- "Default Text Style" ---------- String
      moldings ------------------------ size = 1 ---------------------- Collection
      [0] ------------------------- ------------------------------ NVPublisher
      component_moldings ------ size = 0 ---------------------- Collection
      description ------------- "base molding: PVC 4" Base" --- String
      formatted_size ---------- "1x4" ------------------------- String
      length ------------------ 600 in ------------------------ Measurement
      room -------------------- ------------------------------ NVPublisher
      SEE ABOVE ----------- ------------------------------
      name ---------------------------- "Shared Medical" -------------- String
      pattern_angle ------------------- 0.0 --------------------------- Float
      pattern_horizontal_spacing ------ 8 in -------------------------- Measurement
      pattern_vertical_spacing -------- 8 in -------------------------- Measurement
      perimeter ----------------------- 1020.936748 in ---------------- Measurement
      schedule_number ----------------- "R69" ------------------------- String
      simple_schedule_number ---------- "69" -------------------------- String
      standard_area ------------------- 389 sq ft --------------------- Measurement
      stem_wall_height ---------------- 16 in ------------------------- Measurement
      stem_wall_top_elevation --------- 0 in -------------------------- Measurement
      type_name ----------------------- "Office" ---------------------- String
      volume -------------------------- 3309.16752 cu ft -------------- Measurement
      wall_coverings ------------------ size = 0 ---------------------- Collection
      wall_material ------------------- ------------------------------ NVPublisher
      id -------------------------- -32765 ------------------------ Integer
      name ------------------------ "No Change" ------------------- String
       
    • By ccarpenter18
      In X12 I've noticed that when using Structural Member Reporting in a material list, the price column in the list does not appear to be sensitive to whether a "per unit" or "per length" calculation is being performed by the material list.  In both cases, the material list appears to use the same Price variable in the Component Panel of each object.  Does anyone know of some Ruby scripting that could be used to correct this?  Off hand, I'm thinking of a macro inserted into the Price variable on the Component Panel of each structural member that would use the Material List row context to report a price that depends on how the row wants to use the Price.
    • By wjmdes
      OK, so today I learned that Legacy is just a fancy term for obsolete.  See, I do know how to search  
       
      I have numerous macros, from others and some I wrote.  Has there been any enhanced documentation regarding what "migrating" is going to do to my macros and what I can expect? Or how to fix issues? Is this going to put the brakes on my workflow?  I know enough to write small macros for menial tasks, but I do not have an extended knowledge.
       
      Or is this just not a big deal?
       
       
    • By community
      Hello,
      Just throwing the question out here: Is it possible to write a custom script for X10 to make the program export a custom materials list with some calculated fields and some custom formatting, like a header with our logo?
      If so, would anyone have an idea where I could turn to have this done for me?
       
      Kind regards