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

RE: Placing a note with VBA. Resultant element is a "Dimension" not a "Note".

$
0
0

Please follow the MicroStation Programming forum best practices.

Identify Your Platform

Please identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation CONNECT or MicroStation V8i. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?

If you're using MicroStation in a ProjectWise (PW) managed environment, let us know that too.

The APIs supplied with MicroStation CONNECT are different to those supplied with MicroStation V8i. Consequently, our answers are likely to be different.

Identify Your Programming Language

Are you writing MDL, C++, C#, VB.NET or MicroStation VBA?

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

Multi-Line Note Cell

[quote user="Ameer Mansour"]Did you find a way to place note element within a text contains two lines?[/quote]

If you're writing .NET code for MicroStation CONNECT, then take a look at the DgnPlatformNet class NoteCellHeaderElement.  Here's what the documentation has to say...

A Note Cell is-a a sub-type of cell. The note element consists of a leader and a cell which are only accessible through this handler. The properties in a note element is controlled by the dimensionstyle defined by the leader element. The note also stores this data internally for leader less notes.

If you're writing C++ for CONNECT, then the MicroStationAPI has a NoteCellHeaderHandler with similar functionality. Method CreateNote takes a TextBlock argument.  A TextBlock is a versatile text container that may have multiple lines of text.


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>