简体   繁体   English

revit 设计自动化 api 在创建 revit 文件时是否支持纹理 uv

[英]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.

相关问题 在 Autodesk Revit Forge Design Automation 中创建具有纹理的材质 - Creating a material with texture in Autodesk Revit Forge Design Automation Autodesk 设计自动化 Revit,文本文件作为输入 - Autodesk design automation Revit , text file as input Revit output 压缩文件的设计自动化为空 - Design Automation for Revit output zipped file is empty 设计自动化(链接 Revit 和 Plaxis) - Design Automation (Linking Revit and Plaxis) 如何在revit的forge api设计自动化中将巨大的json文件传递给Command.cs? - How to pass a huge json file to the Command.cs in forge api design automation for revit? 如何使用 Forge Design Automation API 将 BIM 360 中的 Revit 文件保存为云 model? - How to save Revit file in BIM 360 as cloud model using Forge Design Automation API? 设计自动化中的 Autodesk.Revit.Exceptions.InvalidOperationException 错误 API - Autodesk.Revit.Exceptions.InvalidOperationException error in Design Automation API 如何在 Revit 的设计自动化 api 中激活 3d 视图并保存 Revit 模型 - How to activate 3d view and save the revit model in design automation api for Revit Revit的设计自动化api中如何在workitem方法中动态更改输入输出文件的名称 - How to change the name of the input and output file dynamically in workitem method in design automation api for Revit 如何在Design Automation API中创建多个文件以进行Revit并将结果下载为一个zip文件 - How to create multiple files in design automation api for revit and download result as one zip file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM