...
Overview
Sample Plugin 1 is a simple example, created using Visual Basic 2005, which demonstrates the development of SAP2000 plugins. The plugin creates a new model, converts a line of text into 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:
Plugin FAQ:
How is the plugin compiled?
Answer: The plugin is already compiled as the DLL library which follows:
Code Block |
---|
obj/Release/Sap2000Plugin_CSI_Sample1.dll
{code}
h2. Once |
Once compiled,
...
does
...
the
...
plugin
...
need
...
to
...
be
...
registered
...
with
...
the
...
operating
...
system,
...
and
...
how
...
is
...
this
...
done?
...
Answer:
...
Please
...
see
...
the
...
...
...
article
...
for
...
response.
...
How is the regsvr32 error, shown below, resolved when registering the plugin?
Answer: The plugin should be registered using regasm, instead of regsvr32, by running the following command:
Code Block |
---|
c:\windows\Microsoft.NET\Framework\v2.0.50727\regasm /codebase /tlb /verbose Sap2000Plugin_CSI_Sample1.dll
{code}
h2. Warning |
Warning RA0000,
...
shown
...
below,
...
occurs
...
when
...
using
...
regasm
...
to
...
register
...
the
...
plugin.
...
How
...
is
...
this
...
resolved?
Answer: The RA0000 warning may be ignored since the plugin will still function properly.
Attachments
- Sample Plugin Microsoft Visual Studio 2005 Project (zipped file)