Can't Create View Reference

Can't Create View Reference

Rob_Bower
Contributor Contributor
2,442 Views
6 Replies
Message 1 of 7

Can't Create View Reference

Rob_Bower
Contributor
Contributor

Can I use the API to create a drafting view "view reference"? I can do ViewSection.CreateReferenceCallout and ViewSection.CreateReferenceSection but I need a View Reference. A circle with detail number and sheet number. Thanks.

2,443 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

Have you looked at ReferenceableViewUtils?

 

http://thebuildingcoder.typepad.com/blog/2014/04/whats-new-in-the-revit-2015-api.html#4.07

 

View API additions

 

Reference callouts and sections

 

The new class ReferenceableViewUtils provides utility methods that allow an application to manage reference views such as reference sections or reference callouts.

 

The new methods

 

  • ReferenceableViewUtils.ChangeReferencedView
  • ReferenceableViewUtils.GetReferencedViewId

 

allow an application to read and change the view referenced by a reference view (such as a reference section or reference callout).

 

http://www.revitapidocs.com/2017/5e671f1d-7423-0a2c-e0c3-915b3dff92ed.htm

 

Cheers,

 

Jeremy



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

Message 3 of 7

Rob_Bower
Contributor
Contributor

Thanks for your suggestion Jeremy but, I'm trying to create a "View Reference" not a "View Section" or a "View Callout" Please see attached file. Thanks.

Message 4 of 7

dnenovMXKU9
Enthusiast
Enthusiast

Any luck?

0 Likes
Message 5 of 7

jeremytammik
Autodesk
Autodesk

Revit Idea Station?

 



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

0 Likes
Message 6 of 7

chris.edwardsR3BJR
Enthusiast
Enthusiast

Hi Jeremy, am I reading this right and we cant programmatically create or set View References between adjoining dependant views? I've just upvoted this as it's something I need on a project with well over a thousand such views across several project files.

0 Likes
Message 7 of 7

jeremytammik
Autodesk
Autodesk

Dear Chris,

 

I really do not know. off-hand 

 

The best way to find out is to analyse a model yourself, set up the required way, before and after making the required adjustments.

 

Here are some recommendations on researching how to solve a Revit API programming task:

 

 

I actually assume that what you require is achievable programmatically, since many others probably need similar functionality as well.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



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

0 Likes