
This compiles the new_wks function and performs linking (Please make sure the Tutorial.c file is active).
#C builder online code

This opens the file containing this string and jumps to the related section. In the Find Results window, double-click any line containing GetDataObject().Check all the boxes in this dialog and click the Find button. GetDataObject ( ) įor ( int nCol = 0 nCol \OriginC. Create ( "Origin" ) // create a Worksheet window with template - Origin A file named Tutorial.c is created and opened in the Code Builder workspace.Ĭopy and paste the following code beneath the line that reads "// start your functions here.": Make sure that the Add to Workspace box is checked. In the Location text box, specify the User Files Folder/OriginC folder to save your source file. On the Code Builder Standard toolbar, click the New button to open the New File dialog. In Code Builder, start with a new workspace ( File: New Workspace.).Run the Function Using the Custom Routine Button.Minimum Origin Version Required: Origin 9 What you will learn To open Code Builder, click the button on the Origin Standard toolbar, or press ALT + 4 from the keyboard. Once an Origin C function is compiled and linked, the function can be called in various ways from the Origin or Code Builder workspaces. Code Builder provides standard tools for writing, compiling, and debugging your Origin C programs. Origin C's integrated development environment (IDE) is called Code Builder.

This means that Origin objects such as worksheets and graphs are mapped to classes in Origin C, allowing direct manipulation of these objects and their properties from Origin C. Origin C supports a nearly-complete ANSI C language syntax as well as a subset of C++ features including internal and DLL-extended classes.

