offset parameter in formular

offset parameter in formular

Anonymous
Not applicable
3,735 Views
8 Replies
Message 1 of 9

offset parameter in formular

Anonymous
Not applicable

guys, how do I write a formula to use the default offset of a device, inside that family? 

 

For example, I wanted to say that if a box family is 10' high, I want to subtract from that offset 4 feet.

 

Can I create an offset parameter..but how does it know that this offset is the actual offset when we place it inside a project..?  Thanks!

0 Likes
Accepted solutions (1)
3,736 Views
8 Replies
Replies (8)
Message 2 of 9

Sahay_R
Mentor
Mentor

For example, I wanted to say that if a box family is 10' high, I want to subtract from that offset 4 feet.

 

Create a Height parameter.

Create a new parameter - call it Offset. 

For Offset - use the formula Height-4'

 

Capture.PNG


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
Message 3 of 9

Anonymous
Not applicable

Thanks.  I wish we can reference the actual offset "without" having to type in the substitute for the offset. This way if the object is raised 15 feet, we don't have to try to duplicate the height parameter to match what should be automatic.

 

We really should have a standard system parameter that could be referenced anytime in any formulas.

 

 

0 Likes
Message 4 of 9

Sahay_R
Mentor
Mentor

You don't have to duplicate anything. As the Height parameter changes, the Offset parameter will adjust accordingly. You'd label the dimension constraining the geometry with the Offset parameter to control the geometry.

 

Unless of course you and I are completely misunderstanding each other. In that case, please share the family so that I am not just guessing.


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 5 of 9

Anonymous
Not applicable

Yes, I understand that the offset value will update based on the height.  I'm going to upload a picture of the properties so that you can see which offset value I'm referring to, versus the one that we create to add to the family.

 

As there might not currently be a way to obtain that value through an assigned parameter in the formula, I might need to just assign offset or height value to the device.

 

Thanks for trying though! 🙂

0 Likes
Message 6 of 9

Sahay_R
Mentor
Mentor

Once again - share the family.


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 7 of 9

Anonymous
Not applicable

Here is the family.  I uploaded another image to help clarify what I'm trying to do.  Thanks!

 

 

0 Likes
Message 8 of 9

Sahay_R
Mentor
Mentor
Accepted solution

A couple of solutions in order of preference - 

 

1) One option would be to take this family - which is a generic lighting fixture family - and nest it into a ceiling based lighting fixture family. This will then be hosted by any ceilings that you have in your model. Please see \attached file Project 6 for this.

 

2) The other option would be to fix the parameters based on the Offset. All that I did was set a ceiling height parameter. Please see Project 7 attached

 

The Offset that you are talking about is only acessible in the project environment. 


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
Message 9 of 9

Anonymous
Not applicable

I will look at it tomorrow.  I think we can consider this resolved. Thanks again, Rina! 🙂

0 Likes