Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Browsing all 1677 articles
Browse latest View live

Microstation MDL - C++ - mdlDialog_menuBarInsMenu () fails

G'Day from WA,I attempting to update a MDL program to append a custom menu to the Command Window Menu Bar. The code I use is shown below (formatting is lost when I pasted text into this...

View Article


[2004 MDL] information needed

Hello Everyonei am trying to develop a MDL program, a dialog box containing the two buttons1.Function button: do the  function of the code2. cancel button.here i am confused what functions to use when...

View Article


[V8i VBA] How to judge the original file format and the existing DGN format?

Same as the title.How to get the original file format and also the existing DGN format by using VBA?

View Article

Re: [V8i VBA] How to judge the original file format and the existing DGN format?

Current File FormatYou can get the current DGN format using DesignFile.Format, which returns one of the MsdDesignFileFormat values. Original File FormatPlease clarify what you're asking. If the...

View Article

Image may be NSFW.
Clik here to view.

Re: Move view to second application window by macro / VBA

RobertArnold:I tweaked a little of your code and have it working except it resizes the windowAs I wrote, I have no way of testing the code because I have only a single screen.  I don't know why it...

View Article


Re: [2004 MDL] information needed

The simplest approach is to design a modal dialog box.  The command buttons will be Execute and Cancel.In your dialog resource (*.r) file, provide a definition for the Execute button that includes a...

View Article

Re: Microstation MDL - C++ - mdlDialog_menuBarInsMenu () fails

Do you have a pull-down text menu defined in a resource file?Does it have ID 1001?Is the resource file included in your project build make file?

View Article

Re: [2004 MDL] information needed

Hi sagar,an alternative to Jon's advice is to use mdlDialog_openMessageBox function (I am not sure if it exists in V8 2004 Edition, but I assume it does). You can check possible combinations of...

View Article


Re: [V8i VBA] How to judge the original file format and the existing DGN format?

Yes I need both current and original file format. Your codes work! (After deleting On Error GoTo ...., because ReportError can't work in VBA)Can you help explain what is the "FormatMajorVersion" ,...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i VBA] How to judge the original file format and the existing DGN format?

clever_anthony:Can you help explain what is the "FormatMajorVersion" , "FormatMinorVersion" & also those numbers which extracted by Property Handler in VBA?There is some decent explanation...

View Article

Re: Move view to second application window by macro / VBA

hi Jonhi RobertThank you for the code and the effort to implement my idea.Moving to Windows works well, adding a maximize command for each view would be great.Thank you very muchRegardsRaphael

View Article

Re: Move view to second application window by macro / VBA

Hi again,I tried around and played with Basic & VBA...., recording Macros, and now i´m happy with the results.Perhaps not the nicest way and code...., but it works.I added codes to:- change the...

View Article

Re: Error in Bmake while compiling

Jon,I installed VS2005 Full EditionThe path to example is: C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MDLProjects V8i (SELECTseries 3)\basicUsing Shell I run a.cmdcode isset...

View Article


Re: Move view to second application window by macro / VBA

Hi Raphael,I'm glad that we could help. Jon, Programming without being able to test is almost impossible!  Thanks for your help.  Just for your info, your mdl function required a custom variable type...

View Article

Re: Error in Bmake while compiling

hm, basic.dll is the file that should be created, but c:\mdlapps will probably not exist. I asked previously who suggested the call into mstndevvar from another cmd file. You will end upp with missing...

View Article


Re: [C#/mdl/V8i] link an excel spreadsheet in a dgn

OLE is fragile.  It is hard to use.An alternative would be to use Excel as a data source via ODBC or OLE-DB.  You can then use Microsoft ADO in MicroStation VBA to connect to that data source.

View Article

Image may be NSFW.
Clik here to view.

Re: Error in Bmake while compiling

Julia Frid:set MS=C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStationIf you plan to do a lot of development then it's a good idea to set that environment variable permanently in...

View Article


Re: Microstation MDL - C++ - mdlDialog_menuBarInsMenu () fails

Thanks Jon - I was updating the MDL to C++ and forgot the pull-down text menu resource file.

View Article

How to edit reference file name in attachment settings dialogue box via key...

Hi,Is there a way to change reference file names via key ins? So far I have managed to open the reference dialogue box, select the reference file and open the attachment settings box but I cant edit...

View Article

[V8i VBA] How to check elements are 3d snapped at intersection point and...

Hi All,I am looking for help on "How to check elements are 3d snapped at intersection point and insert vertex/common node at intersection if the elements are 3d snapped" in VBA. please suggest...

View Article
Browsing all 1677 articles
Browse latest View live


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