Quick and Easy Validator for Andersen 100 Fiberex Windows.


BrownTiger
 Share

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
Link to comment
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. 

Link to comment
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.

Link to comment
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. 

Link to comment
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.

Link to comment
Share on other sites

  • 1 month later...

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
Link to comment
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
Link to comment
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
Link to comment
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...

Link to comment
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)

Link to comment
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?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

  • Member Statistics

    32893
    Total Members
    9156
    Most Online
    chiefalexadavid
    Newest Member
    chiefalexadavid
    Joined
  • Similar Content

    • By Allen43
      I have returned to this forum once again in seek some help with ruby and macros.
       
      I have been working on a macro to automate cabinet labels. So far I have a mostly working macro, but I feel like my hands are tied and my eyes are closed. First of all the documentation on chief implementation of ruby and its capabilities it really lacking. And second, I don't have the Ruby terminal. I think this is because I am running Interiors, but am not sure as all Chief says is that there is limited use of Ruby in this version.
       
      Anyways, right now I would love to have a list of all callable object attributes. I honestly don't even know if that is the right name for what I am looking for. I am trying to find a list of what info I can scrape from a cabinet. So, what can I put after obj. (ie. obj.width, obj.type)? I think I could find this by running the selected.names command in the terminal, but I have no way of knowing.
       
      This is my current macro. It is built from parts of a macro from @MarkMc and whatever I have been able to come up with from random trial and error. If you see something I could improve on, I am open to suggestions as long as they have a good explanation with them. Thanks in advance!
       
      Macro:
      obj = owner
      obj = referenced unless referenced.nil?
      obj.depth
       
      type = obj.type.to_s
       
      nf = NumberFormatter.new
      nf.unit = 'in'
      nf.use_fractions = true
      nf.show_unit = false
      nf.apply(obj.depth)
       
      standard_size = 24.0 if type == 'base_cabinet'
      standard_size = 12.0 if type == 'wall_cabinet'
      standard_size = 24.0 if type == 'full_height_cabinet'
       
      depth = nf.apply(obj.depth) if obj.depth.to_f != standard_size
       
      standard_size_height = 36 if type == 'base_cabinet'
      standard_size_height = 0.0 if type == 'full_height_cabinet'
       
      height = nf.apply(obj.height) if obj.height.to_f != standard_size_height
       
      width = nf.apply(obj.width)
       
      nomen = 'B' if type == 'base_cabinet'
      nomen = 'W' if type == 'wall_cabinet'
      nomen = 'T' if type == 'full_height_cabinet'
       
      hinging = owner.door_swing
      label = ""
      label << nomen << width.to_s << height.to_s << depth.to_s << hinging
       
      p label
       
    • By Allen43
      I'll new to Chief and have learned that this form might be one of the best resources I have ever used. I am trying to streamline my design process and to do that I would love to be able to change cabinet ends to finished or paneled faster and easier. I tried to make a SP to do this, but I couldn't figure it out. I also thought that there might be a way to do this with macros is a SP, but I know even less about macros than I do Chief.
       
      Any help is appreciated, and if it's not possible that's fine I'll know not to spend more time on this.
    • By tlinder
      I'm trying to run a .rb file that's on my local in CA by using a marco. Right now I can only get it to read the file. Does anyone have any insight on how I might be able to to this or where I need to look?
       
      Macro: In CA
      File.read("C:/Users - Desktop/scope1.rb")
       
       
      Output: from text stored on a local drive
      rafter_length = (length.to_f.round / 12) + 1
      convert_to_int =  rafter_length.even?
      case
        when convert_to_int == true
        resut = rafter_length
        when convert_to_int == false
        result = rafter_length +1
      end
       

       
    • By wazzubrad
      Guys, I am starting to find some of the limitations that I see discussed in the forums and am wondering if this is one of those. The current plan I am working on has various footing widths and depths specified by the engineer for the foundation walls. While trying to create a wall schedule that will show each wall based on footing width and depth and when I look at the available macro's under Object Properties for a macro I don't see anything specific to the footing depth. Anyone know if this property exists for a foundation wall?
       

    • By Renerabbitt
      Do you have 10+ years in the software and wonder if you've been missing some tips and tricks? Have you been able to break the 15 hour condoc set?
      Maybe you are a proficient user that wants to know everything that there is to know in Chief.
      Rendering, Automation, Resources, Symbols, Quick Tools, Style Pallets, PDF Tools, Templates, and more.

      We believe in lifting the community up. All of our tools and resources are available to you. With training that can be personal, team oriented, prerecorded, livestreamed, interactive. We offer training in over 15 softwares from Drafting and Detailing to Modeling, Advanced Texturing, Procedural Workflows, Node Based Design, Macro Creations, DAMs, Automation, VR Workflows, Streaming Overlays and Masks and much much more. Tell us your needs and we will connect you with the package or the right resource.

      Some example learning modules:
      Concentric Jump your dimension strings
      Enter-input your jumps and Enter-close your DBX's
      Snap jump your door widths, concentric jump your windows
      Alt behavior tips, contain-selection and deselection workflows with tool restrictions. 
      Tons of cabinet tools and tips, including custom one-off parametrically modelled vanities and more.
      Custom Toolbar Icons and Custom Library Objects.
      Toolbar Switching Tricks and Library workflows


       
      Other Offer Services Posts: