Hi everyone, this is my first post I'm very glad to join the community
When the cursor is on a element MicroStation show its caratteristics like level, type ecc..
Can I show other information writing code in c# like creation data ecc..
thanks
Unknown said:This is my first post I'm very glad to join the community
Benvenuto!
Unknown said: When the cursor is on a element MicroStation shows its characteristics like level, type etc.. Can I show other information writing code in C# like creation data ecc
When the cursor is on a element MicroStation shows its characteristics like level, type etc..
Can I show other information writing code in C# like creation data ecc
C# and other .NET languages use the MicroStationDGN COM server via a .NET InterOp. The COM server is implemented by MicroStation VBA, so what you can do is restricted to the functionality of VBA.
Depending exactly what you want to achieve, you should consider in the first instance ILocateCommandEvents. Write a class that Implement ILocateCommandEvents. In the _LocateFilter subroutine, you are passed the Element object currently under the cursor. You can extract information from the Element and show it in the Message Center or elsewhere.
However, the above approach will not provide exactly what you see in MicroStation. It's a compromise because you are restricted by VBA's functionality.
Use MDL or the MicroStationAPI to get as close to the core of MicroStation as possible. The locate functions provided by those interfaces let you do exactly what you want.
Developing an MDL or MicroStationAPI application is harder than developing a VBA or .NET solution, but if you want to implement exactly what you see in MicroStation, then that is the only route.
InfoSnap is a popular freeware add-in by Chris Zakrewsky. It adds a lot of useful functionality to MicroStation, and I suspect it already does what you are asking, or at least something similar. And you don't have to write any code!
Regards, Jon Summers LA Solutions
Answer Verified By: Massimo Franceschetti
Thanks Jon I'll try infoSnap
Hi, author of InfoSnap here:
> Thanks Jon I'll try infoSnap
I am preparing a refreshed release this summer. If you have any questions or wishes, please do not hesitate to let me know (but preferably not on this forum ;-).
Cheers,
/Chris Z.
Wish list for infosnap extra features
Length in MU
Angle
Z or RL
Element Type ie line , arc, cell,shape,bspline
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me