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

Re: Convert oTextElement.ID.Low to C# Addin

$
0
0

Hi Aldrin,

if you need to work with Element ID, it's pretty bad idea to use ID.Low only, because in such case you work with incomplete Element ID! ... and it means the only fact you can say about such code is it will not work correctly with some design files.

In VBA the element property ID is DLong (which is 64bit integer) and if you use ID, you should always use DLong.

In C# the property ID is long, so the correct code is:

long elementId = el.ID;

With regards,

 Jan


Viewing all articles
Browse latest Browse all 1677

Trending Articles



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