简体   繁体   English

使用Revit API移动天花板或地板图案

[英]Move a ceiling or floor pattern using the Revit API

I want to be able to adjust the pattern inside a particular ceiling using the Revit API. 我希望能够使用Revit API调整特定天花板内的图案。 Below are the screenshots of the before and after: 以下是之前和之后的屏幕截图:

准备搬家 移动后

I've tried using the Revit Lookup tool to find out what properties have changed after manually moving the lines using the user interface but I have been unable to determine which properties are changing. 我尝试使用Revit查找工具来查找使用用户界面手动移动线条后已更改的属性,但是我无法确定正在更改的属性。 In addition to looking at the Ceiling instance I've also used the temporary delete transaction to discover that their is a Sketch , a SketchPlane , and multiple ModelLine associated with the Ceiling instance. 除了查看Ceiling实例外,我还使用了临时删除事务来发现它们是SketchSketchPlane和与Ceiling实例关联的多个ModelLine Looking into these objects I find no changes either. 查看这些对象,我也没有发现任何变化。 What am I missing? 我想念什么?

Looking at the documentation for the MoveElement( Document, ElementId, XYZ) method, it appears what you're missing might be the Location property of your elements. 查看MoveElement( Document, ElementId, XYZ)方法的MoveElement( Document, ElementId, XYZ)似乎缺少的可能是元素的Location属性。

See Autodesk Docs for more info. 有关更多信息,请参见Autodesk Docs

And also Revit API Docs . 还有Revit API文档

The description of how to Align the Surface Pattern on a Model Element manually through the user interface describes how to access the 'surface pattern line' which controls the pattern position. 如何通过用户界面手动对齐模型元素上的表面图案的说明描述了如何访问控制图案位置的“表面图案线”。 You will probably need to identify this specific line and apply MoveElement to that. 您可能需要标识此特定行,并将MoveElement应用于该行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM