Browse By Tags

  • [CONNECT Update 16 VBA] TextNodeElement.TextLine assignment loses TextElement Symbology

    As you know, a VBA TextNodeElement is a container of TextElement s. Property TextNodeElement.TextLine lets us get or set the text contained in one of those TextElement s. That property correctly assigns the text in the specified line of the TextNodeElement…
  • Create Fractions with VBA

    In response to a question on the Programming Forum I developed a VBA macro to create a numeric fraction . It can, like MicroStation, create any fraction, using any font: it is not restricted to the glyphs available in MicroStation's RSC font libraries…
  • [CONNECT .NET] TextElement.Description: too much information!

    I'm extracting element information from various kinds of element that contain text. I want to describe the element (e.g. Note Element, Text Element, Text Node Element). Element.Description does what I want, except for TextElement . With TextElement…
  • [CONNECT .NET] Text Handler Classes

    The DgnPlatformNet help documents the TextHandlerBase class. It has this note: Base class for text element handlers; should NOT be sub-classed directly (see TextNodeHandler and TextElemHandler) . Unfortunately, neither TextNodeHandler nor TextElemHandler…
  • [i-model SDK] TextElement PartIds Purpose

    Hello, I've been working on adding i-model reading/writing support to our product and have a quick question about the SDK (v1). On the TextElement and TextNodeElement interface there is the GetTextPartIds which takes a TextQueryOptions as an arguement…
  • building a list from scanned TextNodeElements

    What is wrong with my code? Sub EE_Example() Dim ee As ElementEnumerator Dim es As New ElementScanCriteria Dim elArray() As Element Dim i As Long Dim iStart As Long Dim iEnd As Long Dim elLevel As Level Dim elVariant() As Variant Dim bigString As…
  • AddTextLine adds an extra line break

    Hello, I am trying to fill a text node with some text, I always get an extra LF character at the end. Both AddTextLine(s), InsertTextLine(1,s) and TextLine(1)=s always do this for me. The presence of the extra LF does not affect the rendering, but…
  • VBA -> BackgroundFillColor

    Here is my code so far: Public Function add_Blackout() On Error GoTo add_Blackout_Error Dim oEnumerator As ElementEnumerator Set oEnumerator = ActiveModelReference.GetSelectedElements oEnumerator.BuildArrayFromContents oEnumerator…
  • Re: Justify a TextNodeElement?

    Well rather then spam my work I'll give a sample. Basic plan was to get the current setttings of the justify dialog box, then change it to correctly justify the text, then change the settings back. From there just send info to the CadInputQueue. I pulled…
  • Justify a TextNodeElement?

    Simple question, how do I set the justification of a TextNodeElement? The attribute for the node is read-only (anyone know why?) and justifying each text element inside the node does not produce the desired justification on the entire node. Any assistance…
  • TextNodeElement Read Only Property

    This question is spawned off from the http://communities.bentley.com/Products/MicroStation/MicroStation_-_all_pre-V8_versions/f/142/t/38062.aspx question of text ranges and view dependent versus independent. Additionally it may provide a sample to the…
  • Edit Data Field VS Fill in signle Enter Data Field

    I managed to write a VBA script that scans a drawing and extracts number of text (either TextElements or TagSet or TextNode) that are enclosed within a unique identifier, and then replaces them (with the text in thier new values ) into another new…
  • TextNodeElement.AnnotationScaleFactor

    Is there a way to extract the AnnotationScaleFactor from a TextNodeElement. I have found a method for getting the AnnotationScaleFactor from TextElements and DimensionElements, but TextNodeElements do not seem to directly have a property for AnnotationScaleFactor…
  • Re: Update node text

    Roberto Cano said: myNode.TextLine(1): A myWS.Cells(FileRow, 4): NODO111 But the error is the same TextNodeElements seem to be troublesome in VBA. Gary Manuel had a similar problem with Text Nodes . Does it make any difference if you copy the…
  • Get information from 1 cell in a nested cell

    Hi! I have a cell with 2 cells in it. 1 of these cells have textnodes with textinformation. Now i want to get the origo of the cell (works), the name of the cell (works), and the texts from the textnodes in one of the nested cell (doesn't work…
  • Modify textnode line origin and rotation

    I've got a vba that worked in 2004 Edition but no longer works in V8i. The code basically replicates MicroStation's Place Text Along command, modifying the origin and rotation of each text line (or character in this case) in a textnode element to fit…
  • Re: Update node text

    Trouble with TextNodeElement Unknown said: If you look at this thread trouble with TextNodeElements , you will find that others have had problems with the TextNodeElement and VBA in the context of a CellElement that contains a TextNodeElement . According…
  • Re: How to get and set TextNode element's size and font?

    Unknown said: A TextNodeElement is not a TextElement . A TextNodeElement is a container of TextElement s. TextElement s have properties concerning appearance and contain the text that you see in graphics. TextNodeElement also has formatting properties…