You are on page 1of 3

3/10/14

SourceForge.net: Getting Started - electricdss

Summary

Files

Support

Report Spam

Log in Create account

Getting Started
From electricdss

Contents
1 Downloads 2 A Primer 3 The Files 4 Registering The COM Server 5 Updates 6 Accessing the Source Code 7 Updating the Source Code 8 Running the Program 8.1 Starting the COM Server from Another Program

Downloads
The latest official release may be found here (http://sourceforge.net/projects/electricdss/files/) . If you haven't done it already, it is good to download the Installer and install the program and supplemental files at least one time. Thereafter, you can replace the EXE and DLL files with beta versions. Release versions are posted at irregular intervals. Up-to-date versions may be built from the source code, which contains the latest changes. If you don't have a compiler that can build the program, you should be able to get the zip file of the latest build version from the Code repository: OpenDSS Code Repository (http://sourceforge.net/p/electricdss/code/HEAD/tree/trunk) Browse the Distrib folder. The 32-bit versions are located in the X86 folder; the 64-bit versions are located in the X64 folder. The latest beta build is generally just fine and you may need it to access the latest features and bug fixes reported in the Wiki and the Discussion forum. However, there is a risk some bug has crept into the code as changes were made. Report any problems as soon as possible.

A Primer
For more information on getting started, see a user-written Primer (http://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Distrib/Doc/OpenDSSPrimer.pdf)

The Files
sourceforge.net/apps/mediawiki/electricdss/index.php?title=Getting_Started 1/3

Another way to test this is to go into the VBA macro editor (alt-F11) in any of the Microsoft Office tools and see if "OpenDSS Engine" shows up as an Available Reference under the Tools>References menu. If you start up RegEdit. Note: Office tools most commonly use the 32bit version of the OpenDSSEngine. for example: C : \ O p e n D S S > r e g s v r 3 2o p e n d s s e n g i n e . you will need to replace only the appropriate OpenDSS.net: Getting Started .DLL server. you will need to register the in-process COM server. Only one interface (OpenDSSEngine. The parentheses are reserved characters in OpenDSS script and the program may get confused depending on which quote characters are being used in the script. 2. or C:\users\MyUserName\OpenDSS.EXE (the standalone exe with a text interface) OpenDSSEngine. you should find it in at least two places.DLL (see below). Note that EPRI members who install programs such as DGScreener should register the server.net/apps/mediawiki/electricdss/index. 3. There is an installer available at the main download site that will install these files as well as several example and support files. Also. I would not recommend putting the program in My Documents because that is actually a long file name with embedded blanks that sometimes get misinterpreted by OpenDSS scripting.DLL (the in-process COM server) KLUSolve. Windows is able to determine which one is needed for a particular application.DSS. Python. OpenDSSEngine.DLL file. you should be able to find "OpenDSSEngine. but it won't hurt. C++.php?title=Getting_Started 2/3 . Generally.DLL (Sparse matrix solver) DSSView.3/10/14 SourceForge. The Installer can install successfully to these folders. Note: you should also avoid directories such as Program Files (x86). installing in one of the Program Files folders can possibly cause difficulties if you don't have write permission in these folders.electricdss Presently.Exe (a separate plotting program) You can simply copy these files to a directory (folder) of your choice. If you have both the 32-bit (X86) and 64-bit (X64) versions registered.DLL. If you used the Installer. you should get a message that says the registration succeeded. you should not have to re-register the OpenDSSEngine. Then if you are going to be using the in-process COM server. Be sure you get the X64 and X86 versions installed in the proper folder. Registering is accomplished by issuing the following command to the DOS (Command) prompt while in the appropriate X86 or X64 OpenDSS directory. I generally use C:\OpenDSS. it is automatically registered.DSS) is registered and we seldom change it. there are only 4 program files (for either the X86 or X64 versions): 1.DSS" in the registry. unless otherwise directed. Registering The COM Server If you intend to drive OpenDSS from another program such as Matlab. OpenDSS. The other interfaces are created at run time. but if you have difficultly you may choose to move the installed files. MS Excel. Accessing the Source Code sourceforge. You can skip this step if you do not intend to do this. you can manually register OpenDSSEngine.EXE file and the OpenDSSEngine. D L L Assuming you did everything right. 4. Updates For most beta updates. or whatever.

You may wish to create a shortcut on your desktop or pin this file to the Start menu.php?title=Getting_Started 3/3 . 20 March 2013 (UTC) --Rdugan 00:08. Starting the COM Server from Another Program In MATLAB: DSSobj = actxserver(‘OpenDSSEngine. Change the checkout directory if it points somewhere other than what you want. All Rights Reserved.Dispatch("OpenDSSEngine.engine = win32com. © 2014 SourceForge. The client will retrieve all the latest source code from Sourceforge. Running the Program To run the executable.net/apps/mediawiki/electricdss/index.net/p/electricdss/discussion/861976/thread/5b864841/) for instructions. Inc. company T erms of Use .client.3/10/14 SourceForge. See this Discussion topic (http://sourceforge.electricdss The source code is managed through the SVN source code management system.net: Getting Started . SourceForge is a Dice Holdings.DSS Set DSSobj = New OpenDSSEngine. Updating the Source Code Simply right-click on the main folder and select SVN Update. You will notice that the folder icons have changed for the folders that are under source control. In VBA: Public DSSobj As OpenDSSEngine. you might consider a client such as TortoiseSVN.Cookies/Opt Out sourceforge. You should do this periodically to keep up with the latest changes. at 00:08. That's basically all there is to it.EXE.net/apps/mediawiki/electricdss/index.DSS") --Rdugan 17:03. This will include the available documentation files.Privacy Policy . 23 November 2010 (UTC) --Rdugan 17:11. training powerpoint files.php?title=Getting_Started" This page was last modified on 25 September 2013. On Windows. simple open OpenDSS.DSS’).DSS In PYTHON: self. and the OpenDSS versions of most of the IEEE Test Feeders.net. 25 September 2013 (UTC) Retrieved from "http://sourceforge. examples.