Joe_Carrick

Members
  • Posts

    11653
  • Joined

  • Last visited

Posts posted by Joe_Carrick

  1. Here's the Template I use for all my macros.  It provides for error trapping and an explanation of the code.

    I hate to have a macro fail with #evaluation error# so I trap errors and return an explanation of the error.

    I also liberally place comments in the script so I know what each section is supposed to do.

     

    #############################################
    # YODA'S MACROS - X15 CERTIFIED ON
    11-25-2022
    #  Copywrite By Joseph P. Carrick
    #############################################
    # Macro Name & Description
    #  <Name>
    #  <Description>
    #############################################

    # Set Context and initialize result.
    # Make valid for Referenced or Owner Object
    #############################################

    referenced ? obj= referenced : obj=owner
    result = ""

    #############################################
    # Trap errors and provide an explanation
    #   begin 
    rescue end    &   if / elsif / else / end
    # sequences can be nested any number of 
    # levels as needed.
    #############################################

    begin
      # Conditional processing where an error
      # might occur.  This code must define the 
      # value for result.

      result = <ruby code using object NVPs>
    rescue
      # explanation of error
      result = <Error occured because .....>

        -or-

      result = default value (what you want to use as a default)
    end

    #############################################
    # Display result
    #############################################

    result

     

    Here's the Notepad++ "rb" file for editing with Ruby Language formatting.

    MacroTemplate.rb

    • Like 3
    • Upvote 2
  2. 1 hour ago, robdyck said:

    It works this way so that if you choose to re-organize the drawings on the layout page (which would then require re-numbering those views in layout) then all the callouts will auto-update and remain correct.

    Correct, but there's currently no way to automate the Callout number on the Layout.  That has to be done manually in the Layout Box Label.

    I've been asking for some NVPs so that my macro system can handle that automatically and coordinate with the Plan Callouts.

     

    Hopefully CA will be able to understand what I want when I see them next week.  ^_^

  3. I have a project that the city is asking for more detailed MEP than I would normally provide.  Do you have any consultants you use to do plumbing diagrams and electrical panel circuit layouts?

     

    Or, are there some standard details you use?

  4. In reality, Chief should automatically adjust the CAD Block.  We shouldn't have to deal with it.  The 3D is automatically rotated to the correct angle.  If we manually do that then "Rebuild 2D Block" will adjust the CAD Block.  

     

    CA just needs to make it work.

    • Upvote 1
  5. 2 hours ago, MPDesign said:

    I just tested the solar panel in the bonus MEP No.1 Energy Sources. It works as it should.

    It follows the pitch, the size in plan view and cross section are correct. 

     

     

    solar panel plan view.png

     

    This is not correct.  In Plan View the 66" dimension should be 46.662".  It's the projected size that is needed.  Otherwise panels will overlap in Plan View.

  6. Why not just push CA to make the Solar Panels automatically adjust to match the roof slope?  I've been asking them to do that for at least 10 years.  If more users would send that feature request in (actually IMO it's a bug) then maybe it'll get done.

    • Like 1
  7. 5 hours ago, KristjanM said:

    Carpenter and superintendent for 35 years. Always called them lookouts. Designer for the last 10 years. Always called them lookouts.

     

    I've been an Architect for 54 years.

    I've always called them "outlookers" just like:

    • Websters Dictionary
    • Encyclopedia Britanica
    • Cambridge Dictionary

    "Time-Saver Standards" & "Graphic Standards" are totally silent on them except for a couple of details in "Graphic Standards" that labeled them as "outriggers".  Those Details were hand lettered.

    • Upvote 1
  8. Ok this is another case of using incorrect terminology:

    • outrigger - a type of canoe  (Rob wants to float the roof :lol:)
    • lookout - the guy with the binoculars (CA's trying to rob the Bank :lol:;))

    Correct terminology:

    • outlooker - canitlever support for gable roof eaves. (Standard terminology:rolleyes::wub:)

    Didn't we go thru something similar with "Tray Ceilings"?

     

  9. The simple answer is csv's have some control characters which:

    • Rich Text understands correctly.
    • Standard Text doesn't.

    in your case it's probably a control character that standard text thinks is a backspace.

     

    It's for that reason that I use txt files which I can read and display in either.

     

    btw, Rich Text is almost superfluous for macro output since it can only apply to the entire string (every line).  IOW, you will just get one text style.

    • Upvote 1
  10. 31 minutes ago, DefinedDesign said:


    Thanks for the macro, could not get this to work.  I went ahead and sent to the HVAC trade and told him the room volume was not accurate. 

    2048519192_ScreenShot2023-08-12at12_43_31PM.thumb.png.bf36aa3e779a4bd1f195aa6044d0249d.png

    Sorry Lisa,

     

    In the Room Schedule you should just use %interior_area%.

    The key is that you are already specifying the room.

     

    -Joe

    • Like 1
  11. You must have saved that plan as a template and set it to be the default template for "New Plans" in Preferences.

     

    BTW, you should post questions in the Q&A Forum.  

    "Tips & Techniques" is for sharing how you do something that might help someone else.

  12. 2 hours ago, DRDesign said:

     

    I do not use live views for my sections and details. I use the "CAD detail from view" tool as a starting point when a new detail is required. 

    That eliminates some automatic labeling of objects using their NVPs.  CAD Details are unfortunately without intelligence.

    • Upvote 1