Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service. To translate this discussion, select the language.

Revit API Forum

Reply
Highlighted
Post 1 of 4

An automation experiment, family placement, its tag and then a remote tag

68 Views, 3 Replies
03-27-2017 11:50 AM

Apologizing for beginning to wear out a welcome, here is a video and code share for yet another custom ribbon specific task command involving family placement and tags. The ribbon panel split button control being used is a variant of what is mentioned here http://thebuildingcoder.typepad.com/blog/2016/09/stacked-ribbon-button-panel-options.html.

 

One idea presented is a remote tag. Maybe this is commonly done in Revit practice. The remote tag here is simply a tag on on item where the tag itself is placed in proximity to a different item that is a system client to the former item. What is really needed is for Revit tags to show values from an indexed object instead of the object the tag tags. Perhaps it does this. Anyway, that is part of what is seen in the video.

 

Video is at youtube: https://www.youtube.com/watch?v=_x7yyx4Yk_I

Code is at repository: https://github.com/akseidel/WTA_MECH

 

Other items of interest are "Host face normal direction used to drive symbology orientation" and "User settings for family names, types and tag parameter names". The first is a way used to orient based on which direction the host face faces. The idea could be used with a complex family that is capable of rotating within itself to produce a face based family placement that is "always level" so to speak. Only a crude family is used in the demonstration but the code behind does provide the necessary angle to "level". The second is an attempt to externalize family names, family types and parameter names outside of the hard coded add-in. The need is necessary for any type of task related ribbon customization where aspects to the task are not static.   

Post 2 of 4

Re: An automation experiment, family placement, its tag and then a remote tag

03-30-2017 02:34 AM in reply to: aksaks

Dear Allan,

 

Thank you very much for your highly interesting and useful contributions!

 

Definitely no need to apologise.

 

On the contrary, I think that an apology from the community to you is in order, for not expressing due appreciation more enthusiastically :-)

 

I'll highlight this very nice sample on The Building Coder anon.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Post 3 of 4

Re: An automation experiment, family placement, its tag and then a remote tag

03-31-2017 03:58 AM in reply to: aksaks
Post 4 of 4

Re: An automation experiment, family placement, its tag and then a remote tag

03-31-2017 03:08 PM in reply to: jeremytammik

Very nice of you. Thank you.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post

Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.