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

From DocR23

< InterOp:Migration Guide | ACIS
Revision as of 21:50, 10 May 2010 by Adminwikispa (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

API in Legacy Translator Corresponding Option in Connect
api_initialize_aciscatiav5rd No option; functionality handled internally
api_terminate_aciscatiav5rd No option; functionality handled internally
api_catiav5_read_attributes TranslateAttributes
api_catiav5_read_name_option CATIAV.5Brep.ElementNameOption
api_catiav5_read_free_edges TranslateFreeCurves
api_catiav5_read_free_vertices TranslateFreePoints
api_catiav5_read_layers_and_filters TranslateLayersAndFilters
api_catiav5_read_workplanes TranslateWorkPlanes
api_catiav5_read_selection_sets TranslateSelectionSets
api_catiav5_export_use_surface_limits ExportUseSurfaceLimits
api_catiav5_export_revolve_surf_as_nurbsurface ExportRevolveSurfAsNURBS
api_catiav5_set_spline_resurface_option DoSplineResurface
api_catiav5_read_edge_attributes ImportEdgeAttributes

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

API in Legacy Translator Corresponding Code for Connect
api_catiav5_convert_catiav5_to_acis_file
SPAIDocument src(InputPart.CATPart);
SPAIDocument tgt(OutputPart.sab);
converter.Convert(src,tgt);
api_catiav5_convert_catiav5_to_acis_entlist
ENTITY_LIST* pAcisEntities=NULL;
SPAIDocument src(InputPart.CATPart);
SPAIAcisDocument dst;
converter.Convert(src, dst);
dst.GetEntities(pAcisEntities);
dst.DetachEntities();
api_catiav5_convert_catiav5_to_acis_file (using wchar)
src((const wchar_t*) InputPart.CATPart);
SPAIDocument tgt((const wchar_t*) OutputPart.sab);
converter.Convert(src,tgt);
api_catiav5_convert_catiav5_assembly_to_xml
SPAIDocument src(Input.CATProduct);
SPAIDocument tgt(Output.xml);
dst.SetType("EBOM");
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
api_aciscatiav5rd_set_unitscale_callback SetUnit and GetUnit method of the SPAIConverter class. Example:
SPAIUnit outUnit(const char* outputFileUnitName);
dst.SetUnit(outUnit);
SPAIUnit outputUnit;
dst.GetUnit(outputUnit);
aciscatiav5rd_map Currently no equivalent implementation in Connect
api_aciscatiav5rd_set_product_data_callback Deprecated
Personal tools