My company has a 'master' Revit project with all of our details in it (All details are drawn in drafting views). I am trying to write a script that copies those details into another project-basically performing an insert views from file function. I have been working on this for awhile but have not been having any luck. For now, I am just trying to load in one drafting view. Below, I have shown my code and the error that dynamo is giving me. Any help would be much obliged!
Solved! Go to Solution.
Solved by RPTHOMAS108. Go to Solution.
I just figured it out! Here is what I did incase anyone is having the same problem.
update: this will not copy anything else on the view, just the view itself.
No use:
ElementTransformUtils.CopyElements(SourceView, ICollection<Of ElementId>, DestView, Transform, CopyPasteOptions)
i.e.
Create empty drafting view in destination document.
Collect elements from drafting view in source document and copy them to newly created destination view.
The overload you used is mainly for model elements i.e.
"This method can be used for copying non-view specific elements only"
Thank You! That is actually what I ended up doing, I just never got around to posting about it. I also wound up converting the elements on the drafting view into a group and moving that instead of moving each element individually. Not really sure that that is necessary but it gets the job done!
Can't find what you're looking for? Ask the community or share your knowledge.