Hello All,
I've written a piece of code that updates approval dates on one or more drawings by updating tag values provided by the user. I have since been told not all of the customer sites are familiar with tags and have been asked to avoid using them.
Question: is it possible to manipulate a data field values using VBA coding?
Adam Otero said:Is it possible to manipulate a data field values using VBA coding?
You can modify Enter Data fields, using the DataEntryRegion properties and methods of TextElement. If you mean the text fields introduced with V8i, then you're out of luck -- there is no API, in any language, for text fields.
Regards, Jon Summers LA Solutions
Thanks Jon! I'm looking to update several Enter Data fields with the date provided by the user. I'm guessing there's a way to specify which Enter Data fields I want to work with using the DataEntryRegion properties and methods?
Adam Otero said:I'm guessing there's a way to specify which Enter Data fields I want to work with using the DataEntryRegion properties and methods?
No need to guess: it's documented in MicroStation VBA Help.
Bear in mind that it's the TextElement that has properties to get at each Enter Data field. Use the DataEntryRegion object to create or edit your data and then modify and rewrite the TextElement.
Adam Otero said:Not all of the customer sites are familiar with tags
It takes some customers a while to catch up. Tags were introduced with MicroStation v5.5, which my fading memory tells me was about twenty years ago. Ask them to provide you with some idea of how long it will take them to become familiar with tags 8-)