I want to be able to adjust the pattern inside a particular ceiling using the 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. 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. 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.
See Autodesk Docs for more info.
And also Revit API Docs .
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.