Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
\\

{on-this-page}


h1. Overview

The CSI sample plugin 1 was developed{new-tab-link:http://www.csiberkeley.com/}CSI{new-tab-link} Sample Plugin 1 is a simple example, created using Visual Basic 2005., Itwhich isdemonstrates as a simple example for developersthe development of new PlugIns for SAP2000. It starts[SAP2000|sap2000:home] plugins. The [plugin|kb:Plugin] creates a new model, then converts a line of text into [frame|kb:Frame] objects, andthen adds these objects themto yourthe model. If you enterFor testing purposes, if the text "'crash"' anis errorentered, willand beerror generatedmessage forwill testing purposesgenerate.

YouTo need toenable do the followingplugin stepsin toSAP2000, enablenecessary this plugin in SAP2000steps include:

* [registerRegister the plugin|kb:Registering plugins]

* [addAdd the plugin to SAP2000|kb:Adding plugins to SAP2000]


h1. Plugin FAQ:

h2. How dois I compile the plugin compiled?

*Answer:* The plugin is already compiled as the following DLL library which follows:

{code}
obj/Release/Sap2000Plugin_CSI_Sample1.dll
{code}


h2. Once Icompiled, compiledoes the plugin, do you need to registerbe itregistered with the operating system?, Ifand so, how dois Ithis dodone?
that?
*Answer:* SeePlease wikisee pagethe [Registering plugins|kb:Registering plugins] article for response.


h2. How is dothe Iregsvr32 resolveerror, theshown followingbelow, errorresolved when registering the plugin?
using
regsvr32?\\

!Register_plugin_error.png|align=center,border=0!

{center-text}Figure 1 - regsvr32 
Register theerror{center-text}

\\

*Answer:* The plugin should be registered using regasm, instead of regsvr32. Run, by running the following command:

{code}
c:\windows\Microsoft.NET\Framework\v2.0.50727\regasm /codebase /tlb /verbose  Sap2000Plugin_CSI_Sample1.dll
{code}


h2. Registering the plugin Warning RA0000, shown below, occurs when using regasm to givesregister warningthe RA0000plugin. ShouldHow Iis worrythis aboutresolved?
this
warning?\\

!Register_plugin_regasm_screen.png|align=center,border=0!

{center-text}Figure 2 - RA0000 warning{center-text}

\\

*Answer:* The RA0000 warning message canmay be ignored andsince the [plugin|kb:Plugin] will still function workproperly.


h1. Attachments

* [Sample Plugin Zipped Microsoft Visual Studio 2005 Project|^Sap2000Plugin_CSI_Sample1.zip]