I've looked all over the internet for some documentation regarding the writing of UCM files, but alas, I cannot find anything!
We're currently using MicroStation SE, so I believe the best (if not only) way of having this coding, is to use the UCM files.
Does anyone have any documentation or user guides for writing or understanding UCM coding? I'm currently trying to work out what APCOLS, APTSCL, FBFDCN, CUGRAF and NULCMD all mean.
Any help would be gratefully received, as this is becoming a bit of a pain!
is there any serious reason why to use UCM? This tool was obsolete even in the time when MicroStation SE was released and today it's completely forgotten and used only from specific reasons in old implementations. And of course it is the reason why it's not easy to find information about UCM today.
MicroStation SE (if I remember right) offers MicroStation Basic as a tool for macro and simple tools development and MDL as professional C-based development tool.
I recommend to check MicroStation Basic, it can solve your requirements better than UCM.
Labyrinth Technology | dev.notes() | cad.point
We're still using UCM files, as it's been written by our MicroStation support person.
I'm basically trying to find the coding language, as some of the tools no longer work efficiently and I'm therefore trying to figure out what the tool is doing.
For instance, there are areas as below:
TST I2 LT 500,H4w
How does MicroStation Basic work differently to the UCM files then? Also, is it written in any specific language? I'll do some searching on it now. Hopefully we'll get V8i soon, but it's looking like that may be on hold for the time being.
Thanks for your help,
pjpops said:Does anyone have any documentation or user guides for writing or understanding UCM coding?
Anyone who admits to knowing that stuff is likely to keep quiet about it. Either that, or they retired many years ago.
Take Jan's advice: move to BASIC. Why ... ?
pjpops said:I'm currently trying to work out what APCOLS, APTSCL, FBFDCN, CUGRAF and NULCMD all mean.
... that's why. UCMs are hard to read. They are terse, inflexible, lack documentation, and once written are an archtypical example of write-only code.
BASIC includes a macro recorder. That will give you a helping hand to get going.
pjpops said:We're currently using MicroStation SE
Presumably you're stuck with MicroStation SE for a good reason?
pjpops said:Hopefully we'll get V8i soon
V8i provides Microsoft Visual Basic for Applications (VBA). VBA is even better than BASIC. If you start writing BASIC in SE, you'll be pleasantly surprised at what you'll be able to achieve with VBA.
On the other hand, UCMs, while supported in V8i, don't provide access to areas of MicroStation. You'll remain stranded, programatically speaking, in the 1980s (which is when UCMs originated).
Regards, Jon Summers LA Solutions
We're basically stuck with SE due to budgeting and the cost implications of introducing V8i across the company.
It would be good to use BASIC, but I'm currently working out how to edit .bas files and even how to assign them to toolbars. There seems to be very little help for using SE (rightfully so, as it hasn't been supported by Bentley for quite some time now!), so this is proving fairly tricky.
I will endeavour to try and work out some BASIC coding, but at the moment, I'm finding it hard to find much documentation which starts at the basics.
Thanks again for your help guys and wish me luck!
pjpops said:I'm currently working out how to edit .bas files
BASIC source code is in a .bas file. You can edit them either in MicroStation or using a plain text editor, such as Windows Notepad or a smarter editor.
pjpops said: I'm currently working out how to assign .bas files to toolbars
I regret that I can't remember how to customise the user interface in the V7 versions of MicroStation. The keyin command to start a BASIC macro is
pjpops said:I'm finding it hard to find much documentation which starts at the basics.
There is a BASIC help manual delivered somewhere in MicroStation's installation. There are a few BASIC macros delivered as examples in the \Workspace\system\macros folder.