AlterLines.Remove method

AutoCAD Map 3D ActiveX

AlterLines.Remove method

Removes a property alteration from the property alteration definition.

Remove(Index As Long) As Boolean

Returns True on success.

Index

Index of an alteration, starting at 0.

The following code removes the property alteration that colors queried objects red in the sample code for altering queried objects. Insert the code just before the call to qry.Define in the sample code. To go to the sample code, click .

Dim i As Integer

For i = 0 To prj.CurrQuery.AlterProp.Count

Set altl = altls.Item(i) 

If altl.Property = kAlterationColor Then 

prj.CurrQuery.AlterProp.Remove (i) 

Exit For 

End If 

Next i