|
Every
ACIS API has an additional, optional parameter:
AcisOptions *. This parameter allows the caller to control both how the API is journaled and how the API is versioned. Versioning an
ACIS API may be done as follows:
|
|
|
// Run this api as ACIS 7.0
|
|
AcisOption ao(AcisVersion(7,0,0));
|
|
api_do_something(<param1>, <param2>, ..., <paramN>, &ao);
|
|
|
The above logic will construct an
AcisOptions object on the stack. It also creates a temporary
AcisVersion object and passes it to the
AcisOptions constructor. This is the easiest method of constructing an
AcisOption object that is set to a particular
ACIS version. Here is an alternate method that is functionally equivalent:
|
|
|
// Run this api as ACIS 7.0
|
|
AcisOption ao;
|
|
ao.set_version(AcisVersion(7,0,0));
|
|
api_do_something(<param1>, <param2>, ..., <paramN>, &ao);
|