The Add Customlnfo Method

Use the AddCustomInfo method to create a custom property within your drawing. The AddCustomInfo method returns nothing, and has the following syntax:

object.AddCustomInfo Key, Value

Table 21-5 details this method's parameters.

Table 21-5. AddCustomInfo Method Parameters

Name

Returns

Description

Key

String

The name for the custom property

Value

String

The value for the custom property

The following example illustrates adding a custom property called Key0, which can represent any value you desire.

Public Sub TestAddCustomInfo() Dim Key0 As String Dim Value0 As String

Key0 = "Test1Key": Value0 = "Test1Value" ThisDrawing.SummaryInfo. AddCustomInfo Key0, Value0 End Sub

You can view custom properties by clicking File > Drawing Properties, then selecting the Custom tab to display the dialog shown in Figure 21-3.

Figure 21-3. Custom property entry

Was this article helpful?

0 0

Post a comment