InterOp:Migration Guide/ACIS/ACIS to CATIA V5 Writer

From DocR23

Jump to: navigation, search

The following table provides mapping between the Legacy APIs and Connect code:

API in Legacy Translator Corresponding Option in Connect
api_initialize_aciscatiav5wr No option; functionality handled internally
api_terminate_aciscatiav5wr No option; functionality handled internally
api_catiav5_write_attributes TranslateAttributes
api_catiav5_write_layers_and_filters TranslateLayersAndFilters
api_catiav5_write_workplanes TranslateWorkPlanes
api_catiav5_write_selection_sets TranslateSelectionSets
api_catiav5_set_catiav5_save_version CATIAV5.BRep.SaveVersion
api_catiav5_write_enable_free_wires TranslateFreeCurves
api_catiav5_set_preserve_surface_limit

sapi_catiav5_get_preserve_surface_limits

PreserveSurfaceLimits

The following table provides mapping between the Legacy APIs and Connect code:

API in Legacy Translator Corresponding Code for Connect
api_catiav5_convert_acis_file_to_catiav5
SPAIDocument src(InputPart.sab);
SPAIDocument dst(OutputPart.CATPart);
converter.Convert(src,tgt);
api_catiav5_convert_acis_entlist_to_catiav5
SPAIAcisDocument src(const ENTITY_LIST* ipEntities);
SPAIDocument dst(OutputPart.CATPart);
converter.Convert(src, dst);
api_catiav5_convert_acis_ebom_to_catiav5
SPAIDocument src(Input.xml);
SPAIDocument tgt(Output.CATProduct);
src.SetType("EBOM");
SPAIOptions options;
SPAIValue representation("Assembly");
options.Add(SPAIOptionName::Representation, representation);
SPAIConverter converter;
converter.SetOptions(options);
converter.Convert(src,tgt);

The following table provides mapping for the Callback mechanism between the Legacy translator and Connect:

Callback Mechanism in Legacy Translator Corresponding Code for Connect
(*SPAXCatiav5WrMap)(void* entity, CATISpecObject* feature, CATListPtrCATGeometry& geoms) This callback API is available in the header file named SPAXCatiaV5MappingCB.h, which is available under public interfaces folder. You can use this API directly in Connect.
Personal tools