ArchViz UI3 Documentation 2024-09

Table of Content
Table Of Content
../images/architecture/0033/quick/thumbs/01.jpg
Quick Guide
../images/architecture/0033/videos/thumbs/01.jpg
Video Guides
../images/architecture/0033/start/thumbs/02.jpg
Getting Started
../images/architecture/0033/design/thumbs/01t.jpg
UI Settings
../images/architecture/0033/layout/thumbs/02.jpg
UI Layout
../images/architecture/0033/features/thumbs/08.jpg
Widget Panels
../images/architecture/0033/preview/thumbs/01.jpg
F. w. Preview
../images/architecture/0033/designer/thumbs/02.jpg
Designer
../images/architecture/0033/variation/thumbs/01.jpg
Variation Actor
../images/architecture/0033/cost/thumbs/02.jpg
Cost Tracking
../images/architecture/0033/data/thumbs/04.jpg
Data Tables
../images/architecture/0033/csv_export/thumbs/03.jpg
CSV Export
../images/architecture/0033/settings/thumbs/16d.jpg
Scene Settings
../images/architecture/0033/other/thumbs/02.jpg
Blueprints
../images/architecture/0033/game/thumbs/07.jpg
Gamemode
../images/architecture/0033/vr/thumbs/03.jpg
VR projects
../images/architecture/0033/connect/thumbs/02.jpg
Connect BP
../images/architecture/0033/faq/thumbs/08.jpg
FAQ + TIPS
../images/architecture/0033/bugs/thumbs/01m.jpg
Fix Known Bugs
../images/architecture/0033/history/thumbs/01.jpg
Version History

CSV Export To Sheet

Steps to connect and update a google sheet from within the UI3.

Content:

CSV Sheets

Create a Google Service Account

Main Menu Event Graph

Data Sheet Actions

Access Key Data

CSV Sheets

Create the following Google sheets in Drive. Use the Export function in the Data Table and Sheets widget to create local CSV files and import them to Sheets as a start:
  • user_FEATURES SHEET - with all features with preview presets
  • user_SELECTIONS SHEET - with all selected choices

image
Create a Users Sheet that holds
  • user id and name
  • unit selected and base cost
  • links to the google sheets

Allow editing for the sheets

image

Create a Google Service Account

You'll need a Service Account for the Google Cloud.

Follow the steps in the link to create one.

Create an API key as explained.

Enable the API to work

Runtime DataTable Plugin Documentation

image

Main Menu Event Graph

Add a Custom Event to the Event Graph of the main menu called Write To Selection Sheet.

Set the nodes up as shown in the image. This requires the Run Time Data Table Plugin.

The spreadsheet link is stored in a variable in the Info Map.

The event Write CSV to Sheet can only be in an Event Graph to function proper.

image
Connect this part to the pin Call On Complete. It just sends a message to the screen but is required to function.

There should be no red text in the output log if the widget button is clicked. Otherwise read what the problem is.

image

Data Sheet Actions

Open the function Data Sheet Actions in the Main Menu and add the Custom Event Write to Selection Sheet that you just created.

NOTE the two sheets need to be exported in sequence. First the Features and then after the result is back the Selections.

image

Access Key Data

Open the JSON file you'll get after creating the security key on Google. It should look like the image.

Copy Paste the Private Key into the private key variable into the Info Map Data and Reports section.

Copy the Client Email Adress below the key into the email variable

NOTE: the wrong sheet ID may be extracted from the plugin node. I'm still investigating. You can try to manually put the ID into the node.

image
You can get the Sheet ID from the URL or use the node provided in the plugin.

image
Top of page