I'm updating some VBA's from 32 bit to 64bit.
I have one that I use to import notes from word, below is the 32 bit code, does anyone know the replace for the SetCExpressionValue "gWordlibResourceData.bChangeAll", 0, "WORDPROC" line
to use in Connect?
SetCExpressionValue "gWordlibResourceData.bChangeAll", 0, "WORDPROC"
CadInputQueue.SendMessageToApplication "WORDPROC", "1 PasteTextInEditor " & Len(TempString) & " " & TempStringCadInputQueue.SendMessageToApplication "WORDPROC", "1 keypress 13 0 0 0 0 0 0 0 0 0 0 0 1"
Hi,
please be aware you posted your question to Developers and Programming forum, which is generally focused community, plus you do not respect the forum best practices.
If your question is about MicroStation, I recommend to move your post to MicroStation Programming forum (move existing post, do not duplicate it). To move existing post, use More > Move tool under your original post.
Also, please edit your post and add mandatory information like product and it's exact version (e.g. build number). It's also recommended to use Insert > Insert code tool every time you share any code snippet (even one line only).
Larry Wilson said:does anyone know the replace
Tell us what is the functionality in V8i. These CExpression hacks have often no direct translations to CE and probably nobody remember all of them. In other words: It's not important what your V8i code is, but what you want to do in CE. Sometimes e.g. new key-ins are available.
I also recommend to search MicroStation and MicroStation Programming forums, because Text Editor (which is implemented differently) was discussed several times.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Larry Wilson said:Does anyone know the replace for the SetCExpressionValue "gWordlibResourceData.bChangeAll", 0, "WORDPROC"?
I'm sure that Jan is correct when he commented that 'nobody remember all of them'. However, there are ways you can help yourself.
My guess is that your line of code is the result of a VBA recording in MicroStation V8. You can do the same again for CONNECT: record a VBA macro while you twiddle the settings in whatever tool you use to import from Word. Then, examine the VBA recording to see what C expressions are invoked.
Regards, Jon Summers LA Solutions
Thanks for the help, It did get me farther down the path. I think I got that code from Bentley a long time ago.
LARRY WILSON | Senior Designer Crawford, Murphy & Tilly | Engineers & Consultants 84 Remick Blvd. | Springboro, OH 45066 lwilson@cmtengr.com