Sort Mark lets you generate a code as an image based on your selected parameters (you can also crop the values of those parameters, add suffixes, prefixes, etc.).

The image is placed by default in the Image type parameter, but you can create any parameter in which the image should be placed.

To see the QR code or barcode, you need to make a schedule with that image parameter selected and drop that schedule into your drawings. You can do that manually or automate it using AGACAD's Smart Assemblies BIM tool.

Let’s look at how to implement the QR / Barcode generator in your workflow. 

  • First, determine which category of elements should get the QR or barcode. For this example, we will select the Windows category.

  • After selecting the category, you will be prompted with a window asking you to select a parameter where the new QR or barcode should be written. You can create a new Shared Parameter for the selected category, but in this case, we will select an existing ‘Image: Instance’ parameter.

  • After selecting the parameter in which to enter the new QR  or barcode value, a configuration window will open where you will need to enter some settings before generating the new codes.

  1. In the Configuration tab, you can save your settings for future use. They will be saved in your selected Configuration file location.
  2. Displays the name of the category and the parameter where the code will be directed. By choosing Code Type, the user can select its size.
  3. In the Sort Mark dialog window, you need to select parameters from the left that will override the chosen parameter’s value (in this case, Image: Instance). You can then add a Prefix, Suffix, and Take or Remove segments of the chosen parameter’s value.

    In this case, we will select the ‘Mark: Instance’ parameter.

  • In the Filtering dialog window, you can filter out elements from the chosen category, if needed. 

  • After clicking 'OK', an information dialog will show how many elements have been processed of the chosen category. In this case, 7 windows were given the newly-generated barcode.

  • When selecting one of our windows, we can see that the barcode was generated as a .PNG image in the Image parameter with the Mark value.

  • To see this barcode, you will need to create a schedule, adding the image parameter and any additional parameters if you want to filter out certain elements. In this instance, we add a mark parameter to use for filtering out window instances. 

  • Finally, you can create your sheets, add your schedule where you want, and you will see the generated barcode as an image.