Hi
I've created a VBA to add different shapes (other than rectangular and circles) to the worksetshapes.xml. At the moment it doesn't work unless I've created a rectangular shape with the built in tool:
Because after creating that first one, the xml-file fills up with different shapes and so on:
Is there a way to generate this with VBA command or a keyin? Or is there andother way to get around this problem?
Running OBD, CE update 5
Robert
Correct, Tuan. Each delivered dataset includes the StructuralShapesTemplate.xls file along with the section XML files themselves.
Should be found in C:\ProgramData\Bentley\OpenBuildings CONNECT Edition\Configuration\Datasets\Dataset_XXXX\Data\StructuralShapesTemplate.xls
Ok, where do I find the StructuralShapesTemplate.xls file? Maybe I can just put it in my seed-folder. The reason I wanted to generate this is for my program to work in already existing projects/worksets.
any particular reason why you can't just use the blank xml in your snapshot as a starting template for your vba routine? Either manually remove the dummy rectangular shape or re-create the xml file with no section data at all.
The xml created from StructuralShapesTemplate.xls is actually an xml export with mapped schema, so vba isn't involved in the process.
We'd need someone with VBA knowledge/experience to chime in, and I'm honestly not sure how many here fall into the category.