tag:blogger.com,1999:blog-32577727.post808244947336624427..comments2023-04-11T04:43:25.613-07:00Comments on Revit Coaster: View Schedule with Detail Numbers Macro for RevitAnonymoushttp://www.blogger.com/profile/04956053365614954917noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-32577727.post-22527388256804954102016-09-22T00:20:20.325-07:002016-09-22T00:20:20.325-07:00Change the line:
UIDocument uidoc = this.Activ...Change the line:<br /> UIDocument uidoc = this.ActiveUIDocument;<br /> Document doc = uidoc.Document;<br />to this<br /> Document doc = this.ActiveView.Document;<br />Anonymoushttps://www.blogger.com/profile/06710315539491664484noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-43269671367138710102016-09-22T00:18:12.878-07:002016-09-22T00:18:12.878-07:00Change the line:
UIDocument uidoc = this.Activ...Change the line:<br /> UIDocument uidoc = this.ActiveUIDocument;<br /> Document doc = uidoc.Document;<br />to this<br />Document doc = this.ActiveView.Document; Anonymoushttps://www.blogger.com/profile/06710315539491664484noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-30689817874823958652016-08-17T09:26:26.463-07:002016-08-17T09:26:26.463-07:00Thanks Troy,
I figured it out the issue on the Err...Thanks Troy,<br />I figured it out the issue on the Error CS1061: 'MyDetailNumber.ThisDocument' does not contain a definition for 'ActiveUIDocument'....<br /><br />I look into one of your reply's when copying this macro into Revit, you need to make sure you are doing it in the Application tab and not the Project file tab. Sow I had it on the project file tab instead on the Application tab. and it worked...<br /> <br /><br /> Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-80537967415432248732016-08-17T08:42:55.103-07:002016-08-17T08:42:55.103-07:00Thanks, for replying
I'm Getting this error n...Thanks, for replying <br />I'm Getting this error now.<br /><br />'DetailNumber.ThisDocument' does not contain a definition for 'ActiveUIDocument' and no extension method 'ActiveUIDocument' accepting a first argument of type 'DetailNumber.ThisDocument' could be found (are you missing a using directive or an assembly reference?) (CS1061)<br /><br />this error occurs in line 3:<br /><br /> UIDocument uidoc = this.ActiveUIDocument;<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-48505488048013413232016-08-16T17:25:07.620-07:002016-08-16T17:25:07.620-07:00The original macro was written in Revit 2014. In R...The original macro was written in Revit 2014. In Revit 2015 and up the parameter method of get_Parameter has been changed to LookupParameter.<br /><br />Change the line:<br />v.get_Parameter(strDetailNumber).Set(bpDetailNumber.AsString());<br /><br />to this: v.LookupParameter(strDetailNumber).Set(bpDetailNumber.AsString());Anonymoushttps://www.blogger.com/profile/04956053365614954917noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-15235703766146759962016-08-16T17:24:52.356-07:002016-08-16T17:24:52.356-07:00The original macro was written in Revit 2014. In R...The original macro was written in Revit 2014. In Revit 2015 and up the parameter method of get_Parameter has been changed to LookupParameter.<br /><br />Change the line:<br />v.get_Parameter(strDetailNumber).Set(bpDetailNumber.AsString());<br /><br />to this: v.LookupParameter(strDetailNumber).Set(bpDetailNumber.AsString());Anonymoushttps://www.blogger.com/profile/04956053365614954917noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-1687426197818888432016-08-16T14:47:43.310-07:002016-08-16T14:47:43.310-07:00Getting these two errors:
-Error CS1061: 'MyD...Getting these two errors:<br /><br />-Error CS1061: 'MyDetailNumber.ThisDocument' does not contain a definition for 'ActiveUIDocument' and no extension method 'ActiveUIDocument' accepting a first argument of type 'MyDetailNumber.ThisDocument' could be found (are you missing a using directive or an assembly reference?)<br /><br />-Error CS1502: The best overloaded method match for 'Autodesk.Revit.DB.Element.get_Parameter(Autodesk.Revit.DB.BuiltInParameter)' has some invalid arguments<br /><br />-Error CS1503: Argument 1: cannot convert from 'string' to 'Autodesk.Revit.DB.BuiltInParameter'<br />Build failed.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-28851920252889238222016-01-15T14:17:52.581-08:002016-01-15T14:17:52.581-08:00Getting these two errors:
Argument 1: cannot conv...Getting these two errors:<br /><br />Argument 1: cannot convert from 'string' to "Autodesk.Revit.DB.BuiltInParameter' (CS1503)<br />The best overloaded method match for 'Autodesk.Revit.DB.Element.get_Parameter' has some invalid argument (CS1502)<br /><br />Any idea why? Testhttps://www.blogger.com/profile/15668263181659211228noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-90201406201615740162015-06-14T18:27:03.363-07:002015-06-14T18:27:03.363-07:00Hi Troy, thanks for sharing this macro! Would you...Hi Troy, thanks for sharing this macro! Would you be able to edit the post for a step-by-step process on making a macro? I am not sure what to add/delete/amend in the macro/C# interface.Sidney Leonghttps://www.blogger.com/profile/14929030642749158715noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-9434581799768993302015-05-29T09:32:20.489-07:002015-05-29T09:32:20.489-07:00Taylor, yes definitely. You can get the detail num...Taylor, yes definitely. You can get the detail number as shown and fill it into a parameter in the door schedule. You would need some type of verification to ensure you are putting the correct detail in the matching door.Anonymoushttps://www.blogger.com/profile/04956053365614954917noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-6668633664647236442015-05-29T08:28:43.590-07:002015-05-29T08:28:43.590-07:00Thank you for making this, I am new to macros, so ...Thank you for making this, I am new to macros, so this may be a stupid question:<br />I am getting an error<br />'DetailNumber.ThisDocument' does not contain a definition for 'ActiveUIDocument' and no extens:ion method 'ActiveUIDocument' accepting a first argument of type 'DetailNumber.ThisDocument' could be found (are you missing a using directive or an assembly referenAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-32577727.post-81480272887148692902015-01-27T06:55:12.295-08:002015-01-27T06:55:12.295-08:00Thank for sharing :DThank for sharing :DHay Mar ;)https://www.blogger.com/profile/15898413501771210833noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-65226789499901400242015-01-21T15:16:44.465-08:002015-01-21T15:16:44.465-08:00Hi. I am interested in your Macro that does this a...Hi. I am interested in your Macro that does this automaticallyAnonymoushttps://www.blogger.com/profile/04314816918276545051noreply@blogger.comtag:blogger.com,1999:blog-32577727.post-76789959147160383032014-06-09T13:17:21.677-07:002014-06-09T13:17:21.677-07:00Could this also work to link door schedules to doo...Could this also work to link door schedules to door details that have been placed on sheets? <br /><br />Adding a parameter to the door families that will allow a detail drawings to fill in a head, jamb, sill detail section of the door schedule with the drawings (detail) number and sheet when that detail view is placed on a sheet?Anonymoushttps://www.blogger.com/profile/10706684327863539037noreply@blogger.com