I work with Revit API and, seemingly, encountered a bug with asset content. To be more precise, while exporting from .rvt project a material with the following texture characteristics,
in other words, textured material with a checker basic procedural texture and both 2 checkers as its sub-textures, I saw the following situation.
This can be described as follows: the first slot (asset["checker_color1"]) was exported correctly, since the method
asset["checker_color1"].GetAllConnectedProperties()
returned an attached asset, but the second slot was exported incorrectly, because the corresponding method threw an exception and "checker_color2" position was empty, although, as you can see above, there also must be an asset.
Looking forward to a response whether my notification was relevant or not.
Dear Pavlo,
Thank you for your report.
I logged the issue REVIT-99286 [API: sub-texture missing in material asset -- 12174739] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.
You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.
This issue is important to me. What can I do to help?
This issue needs to be assessed by our engineering team, and prioritised against all of the other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.
Best regards,
Jeremy
Dear Pavlo,
Thank you for your patience.
I discussed the issue REVIT-99286 [API: sub-texture missing in material asset -- 12174739] with our development team, and they analysed it in depth.
That initial exploration case was first closed as 'Code Fix Needed', with a new case REVIT-99772 [API: sub-texture missing in material asset -- 12174739] generated from it for the actual development work to be performed.
However, on taking a second look, the development case has closed that as well as 'Cannot Reproduce' with the following explanation:
I cannot reproduce this issue in Revit 2016. I added layers of checker to a material's texture and with the API extraction I can see each layer being found and readable. I did not have the customer's model, nor did I experiment with the debugger syntax indicated.
I suspect it's more likely the developer has a typo in his code rather than anything else.
I created a sample model with an embedded ShowMaterialInfo() macro set to read from the checker material which is saved within it.
You can scroll through the output and see the multiple layers of connected assets and their nested properties.
I extracted the development team code from their macro and added it to The Building Coder samples module CmdGetMaterials.cs in release 2017.0.130.4.
I also published all this information on The Building Coder:
I hope this helps.
Best regards,
Jeremy