Detail elements to drafting views


#1

Hi, is there a way to place detail elements onto drafting views with Dynamo. I can’t even get the drafting view properly. I can make one, but I cannot get it back to place detail elements.


#2

Is the active document saved and is the active view a drafting view? The only time I’ve seen an error like that I was in an unsaved project and/or a legend view.


#3

Yes, active view (full screen) in a saved doc, not on a sheet.


#4

Is the active view a drafting view? Post a cleaned up version of your rvt (just the problem view) and your dyn and I’ll look at this tonight.


#5

Suddenly it started working. Although intermittent, it works. This is what throws most people with Dynamo, sometimes it works, sometimes it doesn’t and in those times sometimes it gives an error, and others it doesn’t. I have not changed anything in the file or the project file at all. One thing perhaps, the drafting view was added after the file was last saved. Could this have had the above effect?


#6

Yes. The element isn’t static unless saved so the ID that Dynamo is looking for doesn’t show up consistently.

Have Dynamo create the view in the same graph if you need a new view.


#7

Thank you for pointing that out, I don’t think I would have found that in the documentation. Now I have a different problem… FamilyInstance.ByPointInView seems to dislike lists… name is a simple type name “Top” that both families share


#8

It’d be in the Revit API documentation, which most people getting started with wouldn’t consider to look in.

Looks like the FamilyInstance.ByPointInView node may be broken no matter how I lace it. @Andreas_Dieckmann FYI.

While that’s being reviewed, you can try the ViewInstance.ByPoint node out of the Springs package instead.


#9

Will do thanks for all your help.


#10

The node is expecting a singleton as family type, not a list. Perhaps experimenting with the list@level settings would help, e.g. setting them to 1 for at least the first two input ports. Or use List.Combine.
EDIT: It would make sense to make this node a little more flexible/versatile. I’m in the process of re-writing a lot of the Clockwork nodes, but I’m going for low hanging fruit first (e.g. single input nodes).


#11

Thanks for clarifying @Andreas_Dieckmann. I may pop over to your GitHub later to check on stuff.