Duplicate Model with Attributes

Someone recently asked on the 12d Model Forum how to duplicate a model and also duplicate any model attributes. I’d previously had the same problem and, frustratingly, none of the built-in options in 12d Model will copy the attributes. At least not in one move. There are workarounds with chains and the Attribute Manipulator, but figured it was such an obvious and easy fix that I’d write a 12d Model app. So, here it is. A 12d Model app (aka… Read moreDuplicate Model with Attributes

Model Duplicate with Attributes Source Code (12d App)

Source code of Model Duplicate with Attributes application for 12d Model. Dependencies: set_ups.h – Available in your 12d Model install folder standard_library.h – Available on the 12d Forum here:  https://forums.12dmodel.com/viewtopic.php?t=1196 !! NOTE !! These files cannot be directly run from within 12d Model. For that, you need the compiled version here or you need to compile it yourself (Utilities→Macros→Compile from the 12d Model menus).

Model Duplicate with Attributes (12d App)

Compiled 12d Model application (aka macro) simply duplicates a given model to a new model with an option to also copy model attributes.  Options in 12d Model currently (V14C2j) allow for duplicating of models, but none support also copying over the model attributes.  The model attributes can be used for storing various meta-data and user-defined information, but are also used extensively by the Three Waters tools in 12d Model, particularly the stormwater drainage analysis.  

Project Information (12d App)

A 12d Model application that displays various information about the current project, including software version, common directories, project details and the ability to query specific project attributes or environment variables.

Project Name (12d App)

A simple 12d Model application to display the current project’s name, path and whether the project was opened from 12d Synergy.  Useful on space-constrained screens, e.g. survey field tablets, where the full project name and path may not be visible in the window title.