Want to create macro that would set my View window to refresh every 15 minutes.

Hi Experts,

I am not good in programming so creating a macro that would set my View Window to refresh every 15 minutes programmatically is not possible for me. Your kindness would appreciated to achieved this undertaking.

Thank you in advance.

Jun

Parents
  • Hi Jun,

    at first, please read and follow Programming Forum best practices. Do you expect you will receive an answer if there is no single information like what product and version do you use?

    It's not clear what do you want to achieve and what do you mean by "view refresh". If talking about MicroStation-based products (Bentley Map etc.), view is updated automatically when displayed content changed. Can you provide better description how it should work?

    With regards,

     Jan

  • Hi Jan,

    Sorry for some of the information are lacking with regards to my query. By the way, I am using Bentley Map 08.11.09.615 and my query is all about VBA macro. Because I honestly have limited knowledge in programming, I am hoping that someone like you who is expert can help me or anybody in this community who have the experienced or may have idea on how to achieve such goal would be very much appreciated.

    I am using Oracle spatial for our projects and we have several data contributors that are connected to our system. My goal is to show all their updates in one Bentley Map View window that has thematic symbology in it. In order to achieve this goal, I need to have to refresh my view automatically every 15 minutes so that their data changes will also be viewed every 15 minutes in my created thematic map (symbology). I have tried saving a VBA macro using a macro recorder but it doesn't really answers my target goal.
    My problem is actually on how I can set a timer in my VBA macro to set it to every 15 minutes view refresh. I haven't seen any tool like timer in the Microstation VBA tools like in Visual Studio that I can set. Maybe, my first question would be: Is it possible to set a timer in Microstation VBA? and second question would be: If it is possible, How?

    Thank you so much.

    Jun
  • Hello Jun,

    there is no timer function/object in MicroStation VBA.

    May be you can use the Windows API (SetTimer / KillTimer)

    Martin

  • Hi Jun,

    Unknown said:
    In order to achieve this goal, I need to have to refresh my view automatically every 15 minutes so that their data changes will also be viewed every 15 minutes in my created thematic map (symbology)

    In my opinion this idea is wrong. In MicroStation a view is updated automatically if a model content is changed. I am not sure but I guess if thematic symbology definition is used in Bentley Map, it would work the same way. And even if not, this is not the main topic in your request.

    Unknown said:
    ...but it doesn't really answers my target goal.

    For you the main goal is to "update view regularly". But what does it mean and what actions / workflow are required in terms of Bentley Map features and tools?

    Are you able to simulate the refresh of modified spatial data manually? If not, I see no reason to discuss it how to repeate using own application.

    Another question is are only attribute data updated in Oracle database or also spatial elements are updated?

    I guess there are two steps:

    • Promote Oracle data modification to Bentley Map. How do you do it now? I am not sure if this process can be configured to be done automatically or you have to repost the data (update DGN local cache) using Geodatainterchange tool manually.
    • Update resymbolized display.

    Can you provide explanation what is your workflow now in Bentley Map and how data modified and stored in Oracle are synchronized to Bentley Map?

    With regards,

      Jan

Reply
  • Hi Jun,

    Unknown said:
    In order to achieve this goal, I need to have to refresh my view automatically every 15 minutes so that their data changes will also be viewed every 15 minutes in my created thematic map (symbology)

    In my opinion this idea is wrong. In MicroStation a view is updated automatically if a model content is changed. I am not sure but I guess if thematic symbology definition is used in Bentley Map, it would work the same way. And even if not, this is not the main topic in your request.

    Unknown said:
    ...but it doesn't really answers my target goal.

    For you the main goal is to "update view regularly". But what does it mean and what actions / workflow are required in terms of Bentley Map features and tools?

    Are you able to simulate the refresh of modified spatial data manually? If not, I see no reason to discuss it how to repeate using own application.

    Another question is are only attribute data updated in Oracle database or also spatial elements are updated?

    I guess there are two steps:

    • Promote Oracle data modification to Bentley Map. How do you do it now? I am not sure if this process can be configured to be done automatically or you have to repost the data (update DGN local cache) using Geodatainterchange tool manually.
    • Update resymbolized display.

    Can you provide explanation what is your workflow now in Bentley Map and how data modified and stored in Oracle are synchronized to Bentley Map?

    With regards,

      Jan

Children
No Data