this is my code but it doesn’t work.
A3DAsmModelFileData modelFileData; // will contain node data
API.Initialize(out modelFileData);
API.A3DAsmModelFileGet(model_file, ref modelFileData);
var model_file_data = new A3DAsmModelFileWrapper(model_file);
int indent = 0;
Write(GetName(model_file), indent++);
for (int idx = 0; idx < model_file_data.m_uiPOccurrencesSize; ++idx)
{
var intPtrPo = Marshal.ReadIntPtr(model_file_data.m_ppPOccurrences, idx * Marshal.SizeOf(typeof(IntPtr)));
A3DAsmProductOccurrenceData poData;
API.Initialize(out poData);
var ss = API.A3DAsmProductOccurrenceGet(intPtrPo, ref poData);
A3DAsmModelFileData productFileData;
API.Initialize(out productFileData);
productFileData.m_ppPOccurrences = intPtrPo;
productFileData.m_uiPOccurrencesSize = 1;
productFileData.m_dUnit = 1;
productFileData.m_eModellerType = poData.m_eModellerType;
IntPtr intPtrPoOut;
API.A3DAsmModelFileCreate(ref productFileData, out intPtrPoOut);
A3DRWParamsExportFbxData k;
API.Initialize(out k);
var write_status1 = API.A3DAsmModelFileExportToFbxFile(intPtrPo, ref k, output_file);
//RecursivelyPrintName(po, indent, model_file);
}