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

RE: [C# Connect] Create/link a child element to (parent element)

$
0
0

Hi Pierre,

[quote user="Pierre El-khoury"]could you provide an example.??[/quote]

I have no such example and unfortunately I don't know if such example exists. I can find some methods that seems to be designed to work with text files in C++ API, but nothing similar in managed API.

[quote user="Pierre El-khoury"]I found a way appending a Linkage to an element, which will include some text but this also need a registered(??) linkageId which in turn can not be arbitrary number(?).[/quote]

I guess that's pretty exact description how text files (and also labels) are implemented. Instead of adding new DGN element types, new features are added based on existing elements and concepts like custom attributes (and EC data today) to elements. So text fields seem to be based on EC Framework (so there are probably some XAttributes attached on elements) and labels are special cells (cell element plus specific data attached) with text fields inside.

Without a proper API it's probably nearly impossible to create element like text field, because it requires several steps that are not described.

[quote user="Pierre El-khoury"]Required: Example how to relate som text to an element.[/quote]

Maybe Bob or Yongan.Fu have something in their pockets. In my opinion if you want to work with text fields and labels now, you have to use C++ API where proper methods are available (at least it seems from reading MicroStationAPI help). You should be aware managed API is still very young and many features are missing. And because C++ API is primary, I guess C++ will always offer far better flexibility and functions (and it's where C++/CLI can be used to implement managed accesss to C++ API).

With regards,

  Jan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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