User Manual - Page 3265

For AUTOCAD 2011.

Loading ...
Loading ...
Loading ...
AecSpaceOffsetClassification object is created and initialized into the currently
active database:
namespace AecSpaceOffsetStandardISA
{
public class AecSpaceOffsetStandardISA: AecSpaceOffsetStandard
{
public AecSpaceOffsetClassification classification
public AecSpaceOffsetStandardISA()
{
}
protected override void InitDatabase(Database database)
{
classification = new AecSpaceOffsetClassification();
classification.Init(
database,
Assembly.GetExecutingAssembly(),
new CultureInfo(SystemObjects.DynamicLinker.ProductLcid,
true);
"AecSpaceOffsetStandardISA.AecSpaceOffsetStandardISAClas
sifications",
"Classification Name"
);
}
}
}
The AecSpaceOffsetClassification.Init method is defined as:
public void Init(Database database, Assembly assembly, CultureInfo
culture, string
resBaseName, string classificationSetName)
The first 3 arguments are usually identical in all cases. The first one is the
database to which the classification set needs to be applied. The second
argument is the current assembly that implements the standard plug-in. The
third argument is the localization for which the classifications are to be set
up (in the example, the current setting of AutoCAD Architecture is used, which
is the recommended procedure). The fourth argument is the name of the string
table within the resources of the assembly. The last argument defines a name
for the classification set in AutoCAD Architecture. This should be localized
too, because it will be visible to the user. However, this section focuses on
classification handling only. When running the standard with the resource
file set up correctly, the drawing should now contain classification definitions
Implementing Offset Rules | 3209
Loading ...
Loading ...
Loading ...