[英]Does revit design automation api support texture uv when creating revit file
We need to create rvt file using mesh data, triangles (indices, vertices, normals, texture uv).我们需要使用网格数据、三角形(索引、顶点、法线、纹理 uv)创建 rvt 文件。 So does revit design automation apis supports create mesh with texture and texture uvs?
那么 revit 设计自动化 apis 是否支持使用纹理和纹理 uvs 创建网格? Any examples would be great help.
任何例子都会有很大帮助。
Thanks.谢谢。
I would suggest you research the DirectShape functionality of the Revit API: DirectShape .我建议您研究 Revit API: DirectShape的 DirectShape 功能。 It includes some ability to apply a Revit material (which is a color and/or texture) to the shapes you create.
它包括一些将 Revit 材质(一种颜色和/或纹理)应用到您创建的形状的功能。 I don't know if texture UV can be specified for DirectShape faces.
我不知道是否可以为 DirectShape 面指定纹理 UV。
If you have your own textures to create in Revit, then you'll want to read about Revit materials and Google how to create them.如果您有自己的纹理要在 Revit 中创建,那么您需要阅读有关 Revit 材质和 Google 如何创建它们的信息。
Best, Michael最好的,迈克尔
Design Automation API for Revit (DA4R) could be considered as a Revit runs on the cloud, you can upload your own app bundle that contains your Revit exporter IEXternalDBAppplication Addin to help you export mesh data from the Revit models.设计自动化 API for Revit (DA4R) 可以被视为在云上运行的 Revit,您可以上传自己的应用程序包,其中包含 Revit 导出器 IEXternalDBAppplication 插件,以帮助您从 Revit 模型导出网格数据。 Here is an example demonstrating how to export Revit elements into three.js meshes and scene:
以下示例演示了如何将 Revit 元素导出到 three.js 网格和场景中:
https://github.com/va3c/RvtVa3c https://github.com/va3c/RvtVa3c
But it came with UI, you have to convert it to pure IEXternalDBAppplication (remove UI codes) before uploading to Forge server as DA4R activity.但它带有 UI,您必须将其转换为纯 IEXternalDBAppplication(删除 UI 代码),然后才能作为 DA4R 活动上传到 Forge 服务器。
Hope it helps!希望能帮助到你!
Cheers,干杯,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.