Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a different Title Block

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
414 Views, 3 Replies

Select a different Title Block

I need to select a different title block in a project.  I have tried .Activate() and I'm able to add title blocks to the list of title blocks - but cannot change it programmatically.

 

3 REPLIES 3
Message 2 of 4
cvandevere
in reply to: Anonymous

While you are in a sheet, click on the title block to highlight it, then at the top of Properties side bar click on the the little down arrow next to the exisitng Titleblock that is currently in-use and select the new title block that you want from the drop down list. That should be all there is to it.

CDV
Message 3 of 4
Anonymous
in reply to: cvandevere

I'm sorry, I meant how do you change it programmatically? With C# .net
Message 4 of 4
Scott_Wilson
in reply to: Anonymous

To do this using the API you will need both the FamilyInstance element of the title block you wish to change and the TypeId of the title block family you wish to change it to.

 

You should then be able to use the FamilyInstance.ChangeTypeId() method to change its family and/or type.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community