multi-Tab document with titleblocks , wanting %common_text% text field subst - but NOT wanting to use configuration "globalVars" JSON - needs to be local to the document

50 views
Skip to first unread message

Ian Finlay

unread,
May 29, 2023, 8:14:46 PM5/29/23
to draw.io Q&A
Hi

I have a multi-Tab document with titleblocks , and I am wanting to substiute a several document text fields in teh title block, so they are auto filled on all tabs within the document


I'd like something similar to globalVars in mechanisim 
but modifying globalVars affects every document I work on

eg: Configuration

{
  "globalVars": {
    "Company": "MyCompany",
  },
 "localVars": {
    "tbTitle": "myTitleBlock Title",
    "Rev": " ",
    "Date": " ",
    "Note": " ",
    "Auth": " ",
  }
}

json.png

Ian Finlay

unread,
May 29, 2023, 8:22:14 PM5/29/23
to draw.io Q&A
Damn it,  suffering for months then I solve the problem in minutes !!!!



OK 

1. Press Control+ M (metaData) 
2. Create a field called 'Rev'  and set property value to text you want 
3. in a text field in drawing use %Rev%
Presto !

Ian Finlay

unread,
May 29, 2023, 8:54:38 PM5/29/23
to draw.io Q&A
Seems that metadata is linked to current sheet only 
would be great if all sheets in a multisheet doc (multi tab doc) could reference common document metadata

that parts not solved !

Reply all
Reply to author
Forward
0 new messages