[V8] Text note by vba one more time

Hello,
I'm trying to write a macro that looks like MS text note. In my drawing I have text elements and I have to move some of them leaving the line between original and the new text origin point. The most important thing for me is to permanently bind the text orygin point to the end of the line, so that the line changes automatically when the text is moved. Is it possible to set a node at the text origin point using VBA?

I analyzed the text note created by MS and saw that the node is set by the element ID, but did not find how to do this via VBA.


I was browsing the forum but couldn't find an answer to my problem.

I am using google translator ;)

Parents
  • The most important thing for me is to permanently bind the text orygin point to the end of the line, so that the line changes automatically when the text is moved

    That requires an association between the line and the text element.  An association requires MicroStation's dependency engine to detect and resolve changes.  VBA provides no class that embodies the dependency engine — only the C++ API covers dependencies in your version (V8) of MicroStation.

    I believe that a Note is a form of Dimension.   VBA has the DimensionElement class.  See if you get anywhere using DimensionElement.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • The most important thing for me is to permanently bind the text orygin point to the end of the line, so that the line changes automatically when the text is moved

    That requires an association between the line and the text element.  An association requires MicroStation's dependency engine to detect and resolve changes.  VBA provides no class that embodies the dependency engine — only the C++ API covers dependencies in your version (V8) of MicroStation.

    I believe that a Note is a form of Dimension.   VBA has the DimensionElement class.  See if you get anywhere using DimensionElement.

     
    Regards, Jon Summers
    LA Solutions

Children
No Data