I found the mvba command for opening the Element Information (CadInputQueue.SendCommand "MDL KEYIN ELEMENTINFO ELEMENT INFO DIALOG")
would like to have key-in do this for me or somehow use the activate it via the vba command like this (vba execute ActiveSettings.CoordinateAccuracy = 6) which works
great. I hope someone out there can help. I have been searching for answer and will continue.
to start the dialog from the keyin is an mdl load: mdl load elementinfo. Is this what you are looking for?
I tried MDL Load: mdl load elementinfo
mdl load elementinfo, none seem to work, the only options are mdl load (nothingelse)
mdl unload, mdl command, mdl debug ? how can I add the elementinfo selection
Version: MicroStation V8i SS 10
RJB Phillips III (Richard) Praise the Lord for His Mercy and grace in Christ Jesus
Hi Richard,
I have to say I don't quite understand what do you want to achieve and what you are asking for.
To open Element information dialog has nothing to do with VBA itself, it's just MicroStation key-in. What is the reason to call MicroStation key-in as a part of VBA method (this is not command) and the method itslef is called using MicroStation key-in?
Would you be so kind and to explain what is your ultimate target? For me it seems it's not related to VBA.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Doesn't key-in ANALYZE ELEMENT do what you want? As with any MicroStation key-in, you can attach that to a function key or other UI widget.
ANALYZE ELEMENT
Regards, Jon Summers LA Solutions
One more note:
Richard Phillips said:would like to have key-in do this for me or somehow use the activate it via the vba command like this (vba execute ActiveSettings.CoordinateAccuracy = 6) which works
These situations is completely different: There is no MicroStation key-in to set the accuracy, so to call VBA code is a workaround. But to open or interact with Element information dialog can be done using standard MicroStation key-in(s), so to use VBA there make problably no sense.
Richard Phillips said:(vba execute ActiveSettings.CoordinateAccuracy = 6) which works
It does not work. It does something, but the key-in is incorrect. The correct one is
vba execute ActiveSettings.CoordinateAccuracy = msdAccuracy6
it was not confirmed, but when you want to open Element information dialog and do it in a safe way (a proper application will be loaded when not loaded already), the key-in (or better to say key-ins used as one sequence), is:
mdl silentload elementinfo;element info dialog open
Oh, thank you so much, you and Lorys such a blessing to me, with your information I made a script and know a single button off my special tool bar makes it happen. so many time saving tips