CHAPTER 28

JobTread / Buildertrend / Spreadsheet Linking

Linking CSV exports from JobTread, Buildertrend, or spreadsheet tools into PPX18 schedules

The CSV System can link text values from a JobTread, Buildertrend, CRM, or spreadsheet export into a PPX18 schedule. Export the source data as a CSV file, which stands for comma-separated values.

PPX18 loads the linked CSV once during each Chief Architect session. If you edit and save the CSV while Chief Architect is already open, close Chief Architect completely and reopen it before checking the schedule so PPX18 can parse the updated file. This behavior is intentional: it prevents Chief Architect from repeatedly reading the external file for every object drawn in the plan.

CSV format only carries the first sheet or page of a spreadsheet. If you need information from additional sheets, consolidate the required data onto the first sheet before exporting, or duplicate the CSV schedule and note for additional schedule iterations.

Save the CSV locally

After exporting the CSV, locate the file on your machine. The file cannot be stored as an online-only cloud file. If it is in OneDrive, Dropbox, iCloud Drive, Google Drive, or another sync folder, make sure the file is downloaded and available offline on the computer running Chief Architect.

On Windows, right-click the CSV file and choose Copy as path. On Mac, select the file in Finder and press Command-Option-C, or Control-click the file, hold Option, and choose Copy as Pathname.

Connect the note to the CSV

Open the note to the left of the CSV System schedule. The screenshot highlights the note that drives the schedule.

In the note dialog, go to the Object Information Panel. In the custom field named File, paste the CSV file path you copied from your computer.

Set the starter row

Use Macro Input 1 to set the starter row. For example, if Row 1 contains title headings, enter 2 so the system skips that heading row and starts reading the CSV data on Row 2. After changing Macro Input 1, close and restart Chief Architect before testing the schedule. The CSV system must reinitialize with the new starter-row setting.

Set the lookup fields

Keep Macro Input 2 visible in the schedule. Its current value is %macros.csv_lookup.dig("%schedule_number%".to_i, :A).to_s.strip.empty? ? nil : macros.csv_lookup.dig("%schedule_number%".to_i, :A)%. This looks up column A for the schedule row and leaves the result blank when that CSV cell is empty. Change :A in both places to the same column letter if you want this field to report a different CSV column.

Macro Input 3 uses this code: % sn="%schedule_number%".to_i; row=$csv_hash && $csv_hash[sn]; v=""; if row; v=row[:B].to_s; end; v.gsub(/\r\n|\r|\n/," " ).gsub(/\s+/," " ).strip %. The B in row[:B] points to column B in the CSV file. Change B to the column you want to output from the CSV.

Customize the fields and schedule

The custom fields do not need to be renamed or recreated. Leave the lookup codes in the supplied Macro Input fields. In the schedule itself, rename the displayed column headings to clear labels that match the information being reported, such as Item, Description, Specification, Vendor, or Link. Renaming a schedule column changes only the heading readers see; it does not interrupt the custom field or CSV lookup behind that column.

This system is limited to text only. Images cannot be brought in through the CSV text lookup system.

Advanced users can potentially bring in images by using an object instead of a note and replacing the object's CAD block with an image file.

The system can also print live links as long as the full URL is stored in the CSV file.

IMAGE PLACEHOLDERCSV System schedule with the source note highlighted to the left

A current screenshot will be added when it improves this instruction.

ESSENTIALS PLANPartially applicable

Partially applicable: the general CSV and schedule-column concepts may be useful, but Essentials does not include specialized PPX18 library tools.

Essentials package: a stripped-down working plan, companion As-Built file, Title Block and Spec Plan, plus Rexel ANSI B (11 × 17) and Rexel ARCH D layouts. It includes no PPX18 toolbars or library items.