Building as a Standalone ApplicationCreate a batch file which sets the following environment variables: A3DT, ARCH, and PATH. An example of such a batch file is shown below:Choose from the two options belowOption 1:Open the Visual Studio 2005 Command Prompt window by selecting: Start>All Programs>Microsoft Visual Studio 2005>Visual Studio Tools>Visual Studio 2005 Command Prompt.Drop the batch file created in the previous step into the command window and select Enter.Option 2:Add the following line to the batch file created in Step 1: C:Program FilesMicrosoft Visual Studio 8VCbinvcvars32.bat. An example of such a batch file is shown below and follow the next steps.Select Start in the lower left corner of your screen.Select Run; this opens a new Run window:Type cmd in the window as shown below:Drag and drop the batch file created using the above steps in the newly launched command window.Choose Enter. This runs the batch file and sets the required paths needed to build an ACIS-based console application.Type devenv in the command window.Select File>New>Project or enter Ctrl+Shift+NSelect Win32 from the Visual C++ Option and Win32 Console Application from Templates; enter an appropriate name and location, and then select OK. This creates a stock project: for example,MyfirstAcisProjectThe Win32 Application Wizard pops up; select Next.From the menu Application Settings > Application, select "Console application". From Additional options, select "Empty project". Finally, select Finish.Under Project, select Add New Item….In the Add New Item window, select Code for the category.Choose C++ file (.cpp) as the template to use. Provide the desired name and location.Select Add.Next, setup the project settings. Open the Property Pages by selecting the project name under the Solution Explorer. Enter Alt-F7 or right click and select "Properties". The following image is a sample Project Properties screen. Note: Make certain that this is the properties screen for the project and not an item in the project.Now expand the Configuration Properties and select C/C++ from the resulting list.Select the Configuration Manager button and set the Active Solution configuration as follows and then select Close.Release (if ARCH=NT_VC8_DLL)Debug (if ARCH=NT_VC8_DLLD)Expand the C/C++ list and select General and enter $(A3DT)/include in the "Additional Include Directories" field.Next select the "Preprocessor" option from the C/C++ tree and append NT_VC8_DLL(or NT_VC8_DLLD), ACIS_DLL, SPA_NO_AUTO_LINK.Expand the "linker" tree and select the General option and enter $(A3DT)/lib/$(ARCH) in the "Additional Library Directories" field.Next select the Input option and enter the following libraries in the "Additional Dependencies" field: SPAAcis.lib SpaLicErrGUI.lib.Select Apply, then OK.Copy the code sample below into the CPP file.Select Build/Rebuild Solution (Ctrl+Alt+F7) .Your program is ready to use. Make certain to add the license key to begin making calls to the ACIS functions.Code to Copy into CPP File[show]Code to Copy into CPP File for Building as a Standalone Application
Licensing Headers
The following code is the licensing header and sample ACIS calls.