Skip to main content
Answer

Can variables or properties be defined and referenced in .manifest file?

  • October 9, 2024
  • 1 reply
  • 46 views

Forum|alt.badge.img

The below shape entry in my .manifest works as intended with a default width/height of 120px:
    {
        "shape": "switch_layer2",
        "name": "Switch (Layer 2)",
        "defaults": {
            "fillColor": "#ccffee",
            "strokeColor": "#000000",
            "strokeWidth": 3,
            "rounding": 10,
            "width": 120,
            "height": 120
        }
    }
 

I have several shapes with the same basic definition and would like to define variables/constants in the manifest file that are referenced by all shape entries.

 

Alternatively, is it possible to define defaults in the manifest that apply to all shape entries?  That would work just as well.

Best answer by chasefreeman

Hey Byt_Clint B,

 

Unfortunately at this time we do not support the ability to define variables/constants in the manifest, so you will have to copy and paste the definitions between files that you want to be consistent or build some form of automation to generate the shape files with the desired constants. 

 

The manifest does allow you to set initial defaults for shapes, but these can be overridden in the GUI. You can see what fields the manifest supports at this URL.

 

Thanks for raising this question and please let me know if you have any other questions on this.

Comments

Forum|alt.badge.img+2
  • Lucid product team
  • Answer
  • October 10, 2024

Hey Byt_Clint B,

 

Unfortunately at this time we do not support the ability to define variables/constants in the manifest, so you will have to copy and paste the definitions between files that you want to be consistent or build some form of automation to generate the shape files with the desired constants. 

 

The manifest does allow you to set initial defaults for shapes, but these can be overridden in the GUI. You can see what fields the manifest supports at this URL.

 

Thanks for raising this question and please let me know if you have any other questions on this.