Create a shared Parameter and add it to the title block of a sheet

Create a shared Parameter and add it to the title block of a sheet

Anonymous
Not applicable
1,162 Views
1 Reply
Message 1 of 2

Create a shared Parameter and add it to the title block of a sheet

Anonymous
Not applicable

Hello everyone! My project is about creating a button that give me the name of the file in sheets, without the complete adress.

(Ex: C://Users/Desktop/example.rvt  and when I push my button, the shared parameter that i have created previuosly shows me example.rvt as value)

My problem is that i can´t put the shared parameter in the title block. Im programmin in C# and I am relatively new in API Revit.

I show you my code in visual studio

Lot of Thanks and sorry for my english (I am spanish). 

 

0 Likes
Accepted solutions (1)
1,163 Views
1 Reply
Reply (1)
Message 2 of 2

lukaskohout
Advocate
Advocate
Accepted solution

If I understand you correctly, you have shared parameter in project where you put the filename with the button and then you want this parameter to show as parameter of title block?

 

If this is the case, you need to bind the shared parameter to the title block category as project parameter cr create it irectly in the title block family and put the value there. Then, if you want the parameter to show in printing, in the title block family create new label showing the info from the shared parameter. That is probably easier to do manually if you do have only one title block family.

 

Project parameter bindings are thoroughly discussed here:

https://thebuildingcoder.typepad.com/blog/2015/12/shared-project-parameter-guid-reporter.html


Hitting Accepted Answer is a Community Contribution from me as well as from you.
======================================================================