BrownTiger

Members
  • Posts

    739
  • Joined

  • Last visited

Posts posted by BrownTiger

  1. ChiefArchitect uses what it needs. Windows 10 uses paged memory (can be swapped to physical drive) and non-paged can not.

    Non-paged memory is reserved for the drivers. The memory (paged) that CA allocated could be in allocated or committed state.

    Software also loads external libraries like DLLs. Typically done with LoadLibrary* APIs. Since executable code segments

    do not change, and you do not need to load the entire executable and every single library to run the code

    Windows loads what you need and maps regions for every code segment to a file (see MapViewOfFile ) for each DLL and EXE.

     

    If a process to load every single library, not only it will be very slow to start, wasteful, inefficient.

     

    CA also uses a ton of third party libraries, almost none of those multi-task/thread. PDF can not  imho parallelized.

    So really what you see is what you get. 

     

     

  2. >I just adjusted my naming conventions to suit.

     
    +1. BTW Java language also includes the same requirement. While technically you do not have to, I ended up fixing a lot of code for someone else... because it broke the EL (ExpressionLanguage in java).
      
  3. Ruby naming conventions require that Method names should begin with a lowercase letter (or an underscore).

    Uppercase reserved for constants. [ Upper case can be used in class defs]

     

    http://rubylearning.com/satishtalim/ruby_names.html

     

    Since X10, CA started to suggest renaming. So please name your methods: feetToIn and never FeetToIn, constants PI=3.14 and never pi=3.14, 

     

    [owner.]area does not work with rooms as rooms have different attributes internal_area, and standard_area. Draw rectangular polyline, selected that polyline, and then open TMM and select your area_rounded macro. 

     

    You can always select any object, than open ruby console and type: owner.names, to see the list of available attributes.

     

    Nothing is wrong.

  4. 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?

  5. On 2/20/2019 at 4:07 PM, Renerabbitt said:

    POST 21

     

    THE COOLEST CHIEF ARCHITECT VIDEO EVER CREATED!!!

    CLOUD SYNC MULTIPLE USER LIBRARIES INTO THE CHIEF ARCHITECT USER CATALOG FOR MULTIPLE END USERS/DEVICES...HEAD EXPLOSION!!! :blink::o:rolleyes::D

     WEBSITE FOR THE REFERENCED SHELL EXTENSION: HERE

    DONATE TO THE BRILLIANT PERSON THAT WROTE THAT FREE SCRIPT: HERMANN SCHINAGL'S PAYPAL ----------->btn_donate_LG.gif 

    DIRECT 64 BIT OS DOWNLOAD: HardLinkShellExt_X64.exe

    DIRECT 32 BIT OS DOWNLOAD: HardLinkShellExt_win32.exe

     

    ENJOY THIS +1000!!!....I'M SO EXCITED!!!!!

     

     

    CLICK ME TO GO BACK TO THE ORIGINAL POST!!

     

    I guess this shell extension save end-user from having to use the command prompt "cmd"

    mklink "z:\userLibrary\User_library.calib" "c:\programdata\Chief...\ReneUserLibrary.calib"

    or Mac 

    ln -s ...

     

    I normally avoid shell extension because they are always running in the background

    They can cause shell lockups

    You only need to run these commands once.

     

    or I would use 

    https://sourceforge.net/projects/symlink-creator/

    Run once executable and it does not have to be running in the background.

     

  6. 1) Macros grayed out because they are invalid

    2) Try creating roomVolume macro, check the "evaluate" checkbox and paste the following 

     (internal_area * (ceiling_elevation - floor_elevation) / 12).round(1)

       Now select a room open the macro manager and select this new macro "roomVolume"

    3)".round()" <- rounding function

  7. Many many years ago PDF was a simple format based on PostScript. Everything was a text file

    1 0 Obj

    << /Type /Font 

    ...

    >>

    These days are OVER. Modern PDFs have multiple compressed streams of prior defined objects, /ProcSet <- procedure sets, functions, embedded interactive objects, embedded fonts, patterns, etc etc etc.

    It is NOT possible IMHO to parse process them cost effectively in a multiple threads/processes at the same time.  

     

    Why am I not all that surprised that only one core is in USE....

     

    Use images.

    • Upvote 1
  8. 1. Ask your city building department.

    2. I would not rely on ca calculations....

    2. Draw a rectangular polyline or use a footprint to create the polyline .... Put owner.area.round(1) macro as a label it will show you the sq ft. Adjust to what the building department tells you. 

    • Like 1
  9. Normally you want ductwork:

    1 center of the house

    2 never install trunc / major supply underneath of wall with eves.

    3 ideally supply's and returns should be in a condition space. 

    4. You should have a central return

    5. Unless you are planning to undercut every door you should plan for returns.

    6. Readup on jump duct vs dedicated returns.

    0. Consult an expert

    • Upvote 1
  10. On 1/8/2019 at 11:28 AM, amddrafting said:

    I was wondering if anyone could help me with macro's. Is there a way to add multiple macro's and get a total? If so could you add a video, I'm more of a visual person  

    BSF.PNG

     

    Yes, you need to assign custom labels to the rooms.  Lets say you created a Label to display survey, assigned a macro "siteSurvey", now inside of that macro you attempting to access in FrontPorch.

    To get that value, find FrontPorch room and set the label, inside of custom function assign global $frontPorch = owner.interior_area. Now $frontPorch global variable will be available in the site survey. to add them all. To add ruby + and most likely (+).round(1). xxx.to_i (converts to integer) Or you can just buy a macro from Joe or Alaska_son 

    • Like 1
  11. Depending on what are you trying to accomplish, below will give you a location of CA/csv/myL

    17 hours ago, GerryT said:

    From reading your posts, I haven't the slightest idea of what your trying to accomplish.

     

    Trying to understand why you don't just put the file in your scripts directory and let Chief handle the path automatically for the MAC or PC.

     

    File.read ($LOAD_PATH[0] +"test_1.txt") Eliminates need for any path.

     

    Note that macs do not use letter drives

     

    NOTE: THIS IS NOT THE CORRECT WAY TO USE PATH

     

    libx1 = File.expand_path("test_1.txt", $LOAD_PATH[0])

    => "C:/Users/browntiger/Documents/Chief Architect Premier X10 Data/Scripts/test_1.txt"

    Call can (also include backslashes) libx1 = File.expand_path("../test_1.txt", $LOAD_PATH[0])

     

    or this

    mycsv = File.expand_path("../csv/myLibrary.csv", __FILE__)

    or 

    File.read(File.expand_path...

  12. 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
  13. PDF or alike methods. 

    It is best to get it right in the first place so you do not have to move and move again, or rotate +5 degrees, -5 degrees, +10 degrees, etc.

     

    But if variables present (septic locations, etc), create a separate plan file: lot.plan, place your roads, setbacks, ponds etc. Print to image or PDF. Import PDF /image back into your house plan. Now you should be able to rotate the house with some silly landscaping, and independently move pdf/image layer, rotate the image position with roads and setbacks and all "Plan Footprint 1", "Plan Footprint 99" - will be in sync. New driveway place it into lot.plan, export and import- until you are happy. 

     

    Combine plans when all placements are firm.

    [My wife changes her opinions daily - so this is what I had to do for my own project.]