I found that too.
See also the Object Members in the first screenshot.
But i want to know how to set up a script with that api class.
I found that too.
Do you need code for rvt 2016?
This code controls “ticking” stuff:
@Tomasz_Puchala thanks for taking over this issue was busy bit.
@thurevit3 Kindly mark the post as solved. Thanks
Attached is a script that will turn on/off grid heads based on the intersection of a detail line/spline drawn through the grids. The purpose of this is to determine whether the user intends to turn off End0 or End 1 of the Grid (because the end nearest the bottom of the page might not be consistently 0 or 1…).
Grid Head Changer.dyn (18.3 KB)
Hi, I can’t seem to get this script to work (link does not work anymore). Also, how can i modify script to turn GridBubbles ON. Thanks
import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.ImportExtensions(Revit.GeometryConversion) clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import * from RevitServices.Transactions import TransactionManager from System.Collections.Generic import * clr.AddReference("RevitAPI") import Autodesk from Autodesk.Revit.DB import * doc = DocumentManager.Instance.CurrentDBDocument uiapp = DocumentManager.Instance.CurrentUIApplication app = uiapp.Application uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument a = UnwrapElement(IN) v = UnwrapElement(IN) TransactionManager.Instance.EnsureInTransaction(doc) for i in a: i.HideBubbleInView(DatumEnds.End1,v) i.ShowBubbleInView(DatumEnds.End0,v) #i.HideBubble(b) TransactionManager.Instance.TransactionTaskDone() doc.Regenerate() OUT = 0
Ah… I’m using Revit 2015. I assume api is different?
This script is created with Dynamo 1.2 and the Revit 2017 api.
The node TB_Show-Hide is actually the Python script.
The .dyn file is attached
Toggle Grid Bubbles.dyn (11.6 KB)
Thanks for quick reply. I can only use Dynamo 1.0 and the project is in 2015.How can I change the script to work for 2015? Any advice would be great. Thanks
I don’t think you can, because this was a new feature of Revit API 2016. Sorry about that.
Those methods only work in 2016 and newer. The only way to do it pre-2016 was manually via the UI.
Thanks for the info guys
Thank you for sharing. It works fine for me.
Sorry for replying in an old thread, but I recently ran into this problem and tried this Node.
I downloaded the packeges and got rid of all warnings, and the node looks exactly like in your screenshot. But nothing happends to my grid-bubbles when I run the node. Am I missing something?
I dont know what went wrong in your Dynamo script. At our office we use this every day. We integrated our scripts with Dyno in Revit. Dyno - Releases and News
Anyway, i uploaded the script again. Maybe this time it will work.
<a class=“attachment"href=”//discourse-cloud-file-uploads.s3.dualstack.us-west-2.amazonaws.com/business6/uploads/dynamobim/original/3X/6/9/694b41ef6150b788e20cbe1acfb3e0faddf26d43.dyn">Toggle Grid Bubbles.dyn (11.4 KB)
Hmm, I still can’t get it to work, I’m really new to this Dynamo stuff. And the Dyno installation didnt work as expected either.
I get the browser, but no content in it and the sample map that they talk about in the manual does not show up.
At this rate it will be faster to just do it manually.
Thanks for the help anyway! Appreciate the effort!
Im having a similar problem,
After running the script, if you click on the grid you can see that the check box is un checked but the grid head is still visible as you can see in the image below.
the scrip is working but why is the grid head still visible ??
Thanks for sharing!