Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [Connect update 4] Problem with TextNode Rotation

$
0
0

Please follow the MicroStation Programming forum best practices.

Code Syntax Highlighting

When you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a pencil:  Syntax Highlighter

A screenshot is great, but a snippet of code is better because we can copy and analyse it.

Use meaningful variable names.  ee does not reveal the semantics of your code.  With no context I might interpret that as an ElementEnumerator.  Why not write what the element should be — oNode or oTextNode for a text node element?

Test Your Assumptions

Dim oNode As Element
Set oNode = ActiveModelReference.GetElementByID64 (3656)
'  Be sure that we really have a text node
Debug.Assert oNode.IsTextNodeElement

Understand the Error Message

The message box tells you that the element is not planar.  I don't understand what a non-planar text node could be.  It would help if you posted a DGN file that includes this problematic node.


Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>