Recommended Posts

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?



Share this post

Link to post
Share on other sites
  • Macros from versions before X12 that have not been migrated should continue working in X12. You do not need to do anything if you merely want to use your existing macros or new macros that don't interact with your existing macros.
    • However, referencing a legacy macro that has not been migrated from a new macro written in X12 (or vice versa) might cause an error.
  • During the migration process you will be able to compare the results of the macro before and after migrating and have the opportunity to make changes if needed.
    • Not all macros will require any changes while migrating.
  • For more information, see "Considerations for Legacy Files" and "Migrating Legacy Ruby Code" in Help.

Share this post

Link to post
Share on other sites

The key here is that any distance or area attribute that was a "Floating Point" number in X11 is a "Measurement" in X12.  If you migrate a macro it will assume it's using the X12 "Measurement" data type and might not work the way it did in X11.


"Measurements" recognize a "unit" such as inches, feet, sqft, etc.  You can add, subtract, multiply or divide like measurement units - but you can't add or subtract a floating point or integer number to a measurement.


If you want to migrate your macros you have to make sure you follow those rules (and there are some more rules) ---- or make sure you convert attributes using .to_f in order to avoid execution errors.


My suggestion is to not migrate unless you are sure of what you are doing. 


I've taken the time to modify all my macros to work in X12 - it was not a trivial effort.  When I create new macros I try to use the "Measurements" but it requires understanding and implementing several new methods that are unique to Chief's X12 Ruby.  The Measurement Class is not a standard Ruby Class - it's an add-on created by CA.

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

    Total Members
    Most Online
    Newest Member
  • Similar Content

    • By 80238dmcm
      I seemed to have lost my user catalog. I cannot figure out what happend. Are these backed up? Can I reload it?
    • By KTransue
      Anyone know if there is a text macro that reflects the name of a "Saved Plan View" attached to a layout window view port?  I've looked, and searched ChiefTalk, and even a general Google search, but I'm not finding anything.  Am I missing the obvious?
    • By MN_JohnH
      In past versions there was a button on the side where I could toggle on or off weather the marquis would select only things that are totally inside the marquis or anything that is touched by the marquis. Since I have been using x12, I can't figure out how to get this button back.
    • By ChiefAR-MARGARET
      I have spent hours trying to create note schedules for my layout. I cannot get rid of the 1st note schedule I created in my elevation. I have deleted everything and started over, opened new plans, tried to copy and paste, cad detail, etc. But it just isn't working! Every new note references other notes that are deleted, turn off, etc. And there are no videos to address this. They only show you how to do 1 note schedule. Thank you!
    • By StructEng58
      Good day all, 
      I am currently looking at buying a new computer and I am very heavily leaning on purchasing a MacBook Pro 16", which will give me everything to run Chief Architect. I have a MacBook that I bought in 2009 and it is still running strong, but it is not upgradable to the new Mac OS and I can't run X12. Right now I am running a Windows10 desktop, but really want one computer for work and other things. On my current setup I am running dual monitors with a TV attached for when I meet with customers. 
      I am looking for a dock for the MacBook Pro, which will allow me to connect up to four (4) monitors. This is so I can attach the two monitors I have along with the TV. In the near future I would like to add a third monitor for doing my structural calculations and such while in Chief. I have found this one linked below, but was wondering if anyone else is using a similar setup or if this will cause problems with Chief?
      Targus Quad Docking Station
      Thank you in advance,