Search the Community
Showing results for tags 'substring'.
A big thank you to whomever engineered the Data Tag in Vectorworks 2022. Sitting in a tutorial today and the dreaded question... how do we tag Window Symbols when we have modelled a custom window? It's easy with the data tag! Create a custom 2D/3D Symbol, assign IFC catagory to the Symbol via the Resource Manager, and use the 'IFC Classification' Data Tag - symbol variant. A couple of tweaks and the Data Tag is picking up the 'Tag' value entered into the IfcWindow property set; the same one used by window styles. To demonstrate how the Data Manager works, we then map the 'tag' to 'reference' in Pset_WindowCommon, using a concatentation to floor level (layer) and window tag, via the data manager, set up a data sheet to see only the fields we are interested in in the ifc data structure, thereby streamlining the whole process, and export an IFC to show where the value ends up in an IFC via BIM Collab. The way the Data Manager now helps you define custom values is extraordinarily useful. The fact it tells you off when you get an 'invalid expression' is great! =concat(substring(L,'-'4),'-',IFC.'IfcWindow'.'Tag') ellicites a response of 'Comma expected'! =concat(substring(L,-,4),'-',IFC.'IfcWindow'.'Tag') and it says 'Invalid factor'! With wrist slapped, I try again. Bingo! =concat(substring(L,'-',4),'-',IFC.'IfcWindow'.'Tag') results in '00-W1' and is automatically entered into the 'Reference' field now visible in our 'Window Data Sheet'. All our data is now driven through IFC. Amazing! Things like this makes me happy.
Hi, are there any possibilities to implement a substring and a count function in a VW 2022 Data Tag? Both are worksheet functions, however I didn't find them both in the data tag functions. (I suppose, because the "data tag" Plugin doesn't support them there) typing a substring command manually still didn't work.