OnInstanceEnd called to early

OnInstanceEnd called to early

Anonymous
Not applicable
275 Views
1 Reply
Message 1 of 2

OnInstanceEnd called to early

Anonymous
Not applicable

Hi,

 

We are using the Revit API interface IExportContext to export a Revit scene (document) to our software. We have experienced that some objects in the scene when they are exported we first receive a call to OnInstanceStart and expect to receive faces and materials after that (OnFaceBegin a.s.o) but instead we receive a call to OnInstanceEnd directly and after that call we get the objects faces and materials. For 99% of the objects we get the calls in the correct order but for a small number of objects the calling order seem to be incorrect. Is this a known problem with Revit API?

 

Regards

Robert 

0 Likes
276 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Robert,

 

That sounds weird. Nope, never heard of it. Can you possibly submit a reproducible case?

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Thank you!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes