NOTE: This article applies to older versions of InRoads prior to the V8.5 versions. More recent versions (V8.7-V8.11) deliver the SDK and help files with the product in the SDK directory.
The Bentley InRoads SDK provides interfaces for Visual Basic, Visual C++, and MDL development tools that will allow you to create custom applications in the following areas:
Also included are the SDK help , Visual Basic and Visual C++ examples.
InRoads SDK is available on request to members of the Bentley Developer Network . You will need a version of Bentley InRoads SDK that is compatible with the version of your Bentley InRoads installation. Below are the hardware and software requirements for InRoads SDK:
Hardware
Software
Note: Be sure to add the location of the InRoads dlls to your PATH environment variable for example: c:\bentley\SelectCAD\bin.
To use InRoads SDK, run the Setup.exe and install to the InRoads(SelectCAD) directory. An SDK subdirectory will be created.
Items that get installed with InRoads SDK include:
It depends on whether you are going to create an In-Process or Out-Of-Process application. Below is the process for both:
In-Process Compile with Project Type as "ActiveX DLL". Use the installed VBSamples InProcess example as a template. Copy the contents of the InProcess directory to a new directory and rename the project (vbp) file. Either modify the startForm.frm or delete it and create a new startForm.frm. A startForm.frm is required.
Out-Of-Process Compile with Project Type as "Standard EXE" . scadSDK_initialize() must be called before any other SDK functions. scadSDK_initialize verifies that there is a valid SelectCAD license, and it initializes the SDK functions. See the installed VBSamples OutOfProcess.
Again, this depends on whether the application is In-Process or Out-Of-Process. Below are explanations for both:
In-Process From the InRoads Explorer, go to Tools > Run Macro, then select the Visual Basic DLL file.
Out-Of-Process Run the Visual Basic EXE file.
Below are the steps for debugging both the In-Process and Out-Of-Process applications:
In-Process (Requires MicroSoft Visual C++)
Out-Of-Process
Determine what type of application you have then follow the instructions below.
In-Process (Decide whether to create a modal or non-modal dialog box).
Note: On the Link tab, you must select the following options: Generate debug info and Link incrementally.
// Uncomment the following line to create a non-modal dialog box//SDKsmpl *pDlg = NULL;int StartCommand ( ){HINSTANCE rscHndl;rscHndl = AfxGetResourceHandle ( );AfxSetResourceHandle ( GetModuleHandle ( "VCDtmTest.dll"));// Modal only remove these lines if you plan on creating a non-modal dialogSDKsmpl dlg;dlg.DoModal();// End of Modal// To create Non-Modal, uncomment the following lines//pDlg->Create ( IDD_DIALOG1, NULL);//if ( pDlg )// pDlg->ShowWindow(SW_SHOW);// End of Non-Modal codeAfxSetResourceHandle ( rscHndl );return ( 0 ); // This should be 1 if you are running a non-modal application}
EXPORTS
See the instructions below:
In-Process
For debugging Visual C++ applications see below:
Product TechNotes and FAQs
InRoads Product TechNotes FAQs And Support Video Clips
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!