FillGrid properties

FillGrid properties

Anonymous
Not applicable
1,024 Views
4 Replies
Message 1 of 5

FillGrid properties

Anonymous
Not applicable

Hello,

Does anyone know, Origin and Angle properties of FillGrid class, what exactly are they relative to?

It seems to be somewhat unclear from the documentation.

Thanks!

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

Revitalizer
Advisor
Advisor

Hi,

 

just search for "revit.pat" in your Revit program folder. This file not only contains a bunch of fill patterns but also provides a description of the *.pat file format itself.

You can open it by any text editor.

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks!

Unfortunately, this file doesn't seem to add much to the documentation (unless I missed something there).

> The first line in the set starts at the specified x,y-origin.

What is this origin relative to? Which coordinate system is used here?

(It doesn't seem to be the UV coordinates of the face, for example.)

> Angle specifies the direction, in degrees, of a set of lines relative to the x-axis.

What exactly is x-axis?

>    angle = 0          => lines are horizontal

Horizontal relative to what? (If it's a ceiling, for example)

0 Likes
Message 4 of 5

Revitalizer
Advisor
Advisor

Hi,

 

A FillGrid is just a definition, and so its orientation to a given ceiling must be seen in the context.

It's like a Family definition vs. a FamilyInstance.

This posting may help to find the orientation in a given situation:

https://forums.autodesk.com/t5/revit-api-forum/dimension-on-hatch-pattern-slab/m-p/7063302#M22651

 

Revitalizer

 




Rudolf Honke
Software Developer
Mensch und Maschine





Message 5 of 5

Anonymous
Not applicable
Accepted solution

Thanks again! So basically, the data contained in the instances of FillGrid class contains the unmodified contents of the fill pattern definition; as a result, the properties of FillGrid (like origin and angle) are defined in the internal coordinate system (2D) of the fill pattern definition, and specify the location and orientation of the grid lines relative to each other.

0 Likes