tag:blogger.com,1999:blog-32577727.post3837725740858648438..comments2023-04-11T04:43:25.613-07:00Comments on Revit Coaster: Macros for Deleting Views and SheetsAnonymoushttp://www.blogger.com/profile/04956053365614954917noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-32577727.post-54367025391383835382016-10-14T08:58:21.660-07:002016-10-14T08:58:21.660-07:00Hi I keep getting this error can you please help m...Hi I keep getting this error can you please help me out.<br />thanks.<br /><br />'CLEANUPVIEWS.ThisDocument' does not contain a definition for 'activeUIDocument' and no extension method 'activeUIDocument' accepting a first argument of type 'CLEANUPVIEWS.ThisDocument' could be found (are you missing a using directive or an assembly reference?) (CS1061) Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-67457563850622215642016-10-14T08:57:17.888-07:002016-10-14T08:57:17.888-07:00Hi there Can you please help with this error. I am...Hi there Can you please help with this error. I am using a Revit Architecture 2014 version.<br /><br />Thanks.<br /><br />'CLEANUPVIEWS.ThisDocument' does not contain a definition for 'activeUIDocument' and no extension method 'activeUIDocument' accepting a first argument of type 'CLEANUPVIEWS.ThisDocument' could be found (are you missing a using directive or an assembly reference?) (CS1061) - C:\Users\5\AppData\Local\Temp\{423CB890-4CF4-4645-BB8B-D5D143515556}\Revit\DocHookups15412\284433664\CLEANUPVIEWS\Source\CLEANUPVIEWS\ThisDocument.cs:42,26Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-70976920258710512002016-05-16T19:22:24.818-07:002016-05-16T19:22:24.818-07:00as I do or where in stick my macros to run ????as I do or where in stick my macros to run ????Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-49979252180506763462016-03-07T10:22:28.846-08:002016-03-07T10:22:28.846-08:00I'm new in the Revit API. When entering this ...I'm new in the Revit API. When entering this code, I keep getting the following errors when I build solution:<br /><br />"Argument 1: cannot convert from 'Autodesk.Revit.DB.Element' to 'System.Collections.Generic.ICollection' (CS1503)"<br /><br />The best overloaded method match for 'Autodesk.Revit.DB.Document.Delete(System.Collections.Generic.ICollection)' has some invalid arguments (CS1502)<br /><br />Any thoughts? Thanks!Anonymoushttps://www.blogger.com/profile/04008744872322183103noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-62824473444942206892015-12-16T09:19:54.847-08:002015-12-16T09:19:54.847-08:00Hi Troy,
(You probably hear this all the time, but...Hi Troy,<br />(You probably hear this all the time, but) I'm REALLY new to macros and I was trying to build your application "Delete Views except Floor and Ceiling Plans" macro, but it keeps giving me errors. I am using Revit 2015. The first build resulted in having to add two (})brackets at the end of the code. Once I tried to build it again, those errors went away and 3 additional errors resulted. Two errors in line 60 and one in line 29. <br /><br />The first error states "Argument 1:cannot convert from 'Autodesk.Revit.DB.Element' to 'System.Collections.Generic.ICollection (CS1503)."<br /><br />The Second error states: "The best overloaded method match for'Autodesk.Revit.DBDocument.Delete)System.Collections.Generic.ICollection' has some invalid arguments(CS1502)"<br /><br />Finally, the third error states: "MacroName.ThisApplication' does not contain a definition for 'InternalStartup' and no extension method 'InternalStartup' accept in a first argument of type 'MacroName.ThisApplicaiton' could be found (are you missing a using directive or a)"<br /><br />Could you please help me fix this? I think this macro would be an invaluable time saver if I can get it to work.<br /><br />Thank you for all your awesome work!!!ndsmaughttps://www.blogger.com/profile/11572047884864275911noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-67354086371486458602015-10-14T22:58:33.258-07:002015-10-14T22:58:33.258-07:00Thanks for your reply, If you don't mind can g...Thanks for your reply, If you don't mind can give me one small example for this.Vinay Krishnahttps://www.blogger.com/profile/00582275690571110289noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-40402668689345878142015-10-12T10:04:15.137-07:002015-10-12T10:04:15.137-07:00You could use an if statement to skip the sheet fr...You could use an if statement to skip the sheet from deletion. Just check for the view name or view sheet number.Anonymoushttps://www.blogger.com/profile/04956053365614954917noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-80284408835206051152015-10-12T04:38:32.838-07:002015-10-12T04:38:32.838-07:00Thanks for your codeThanks for your codeVinay Krishnahttps://www.blogger.com/profile/00582275690571110289noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-76565070262402408002015-10-12T04:38:00.130-07:002015-10-12T04:38:00.130-07:00Hi,
I want to keep one sheet ,is it possible with...Hi,<br /><br />I want to keep one sheet ,is it possible with this code.<br />Sheet name some thing like "sheet301-3D"<br /><br />Regards<br />Vk Vinay Krishnahttps://www.blogger.com/profile/00582275690571110289noreply@blogger.com