QueryCategory.Add method

AutoCAD Map 3D ActiveX

QueryCategory.Add method

Saves the current query to the category or an external file.

Add(  QueryName As String, _
 QueryDescription As String, _
 SaveOptions As Long _
 QueryFileName As String _
 ) As SavedQuery

Returns the saved query.

QueryName

Query name

QueryDescription

Query description

SaveOptions

Save options, one or more ESaveQueryOptions constants. This parameter is relevant only if there is a QueryFileName argument—that is, if the query is saved externally.

QueryFileName

Path and file name or the empty string. If a path and file name are given, the query is saved externally.

You combine ESaveQueryOptions constants with the + operator. For example, to save the coordinates of the query and the alter properties, the argument is kQrySaveCoordinates + kQrySaveAlteration.