Get surface Fill pattern grid line coordinates by Revit API

Get surface Fill pattern grid line coordinates by Revit API

yexiongjin
Contributor Contributor
1,265 Views
4 Replies
Message 1 of 5

Get surface Fill pattern grid line coordinates by Revit API

yexiongjin
Contributor
Contributor

 

Hello Revit API Gurus,

 

A lot of my customers like  using the surface fill pattern to mimic putting  ceramic tiles on restroom walls and floors.  The fill pattern are assigned to walls or floors by Revit material fill pattern.

restroomtiles.png

 

Revit product is very powerful to allow users to adjust the fill patter grid lines, for example  moving  one wall fill grid line to the floor pattern grid line, so the rest room looks better.   (The blue grid line can be moved by Revit Move command)

floor align wall tiles.png

 

After users adjust the fill pattern grid lines, my plugin command wants to get the tiles details ,for example each tiles' size and the count of different size. So I want to retrieve the coordinates of each pattern grid lines for a specific wall or wall. After that my plugins can calculate all tiles' size (including those umcompleted tiles)

 

thank you very much for any clues. This API is very useful for  interior decoration.

 

0 Likes
Accepted solutions (2)
1,266 Views
4 Replies
Replies (4)
Message 2 of 5

hugha
Collaborator
Collaborator
Accepted solution
0 Likes
Message 3 of 5

yexiongjin
Contributor
Contributor
Accepted solution
Many thanks Hugh!

It is helpful to get the answer.
0 Likes
Message 4 of 5

cdd1171022
Explorer
Explorer

I think the dimension created using the FilledRegion as a reference is used to locate and organize all the fillGrid elements on the floor slab. By measuring the distance between each grid element and the dimension line, you can determine their position relative to each other and make sure they are spaced evenly and aligned correctly. This helps to ensure that the overall pattern looks consistent and visually appealing.

0 Likes
Message 5 of 5

cdd1171022
Explorer
Explorer

I am now placing a component on the floor slab, which may not be at an intersection point of the fillGrid. However, I need to move the fill pattern of the floor slab so that the component is aligned with an intersection point of the fillGrid. How can I achieve this?

0 Likes