Versions Compared

Key

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

{on-this-page}


h1. Overview

{new-tab-link:http://www.csiberkeley.com/}CSI{new-tab-link} Sample Plugin 1 is a simple example, created using Visual Basic 2005, which demonstrates the development of [SAP2000|sap2000:home] plugins. The [plugin|kb:Plugin] creates a new model, converts a line of text into [frame|kb:Frame] objects, then adds these objects to the model. For testing purposes, if the text 'crash' is entered, and error message will generate.

To enable the plugin in SAP2000, necessary steps include:

* [Register the plugin|kb:Registering plugins]

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


h1. Plugin FAQ:

h2. How is the plugin compiled?

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

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


h2. Once compiled, does the plugin need to be registered with the operating system, and how is this done?

*Answer:* Please see the [Registering plugins|kb:Registering plugins] article for response.


h2. How is the regsvr32 error, shown below, resolved when registering the plugin?

\\

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

{center-text}Figure 1 - regsvr32 error{center-text}

\\

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

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


h2. Warning RA0000, shown below, occurs when using regasm to register the plugin. How is this resolved?

\\

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

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

\\

*Answer:* The RA0000 warning may be ignored since the [plugin|kb:Plugin] will still function properly.


h1. Attachments

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