All Frameworks  Class Hierarchy  This Framework  Indexes

SPAkern Global Function api_pattern_destroy


outcome api_pattern_destroy(pattern* pat,
AcisOptions* ao= NULL)
Decrements the use-count of a given pattern and deletes the pattern if it is no longer used.

Role: Patterns are use-counted. To avoid memory leaks, the user should call this function when a pattern is no longer needed. When the use count drops to zero, this function will destruct the pattern.

Errors: The specified pattern is NULL.

Effect: Changes model.

Journal: Not Available

Parameters:
pat
the pattern to be released.
ao
acis options.

This object is included in the file: pattern_api.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.