I am attempting to set the vertical extents of structural grids in my current project to match the vertical extents in of the structural girds from a linked model. I am trying to utilize Data-Shapes’ node “Grid.SetVerticalExtents”. I am not entirely sure I am inputting the correct information into the node. Please see below image and attached graph. Any assistance would be appreciated.
Thank you @Mostafa_El_Ayoubi. That solves one issue I was having. Originally I was trying to feed in points for the inputs. Is there way to modify the node to accept a list of grids and extent inputs? I have been able to generate some python from the original node to accept a list of grids, but I am not sure how to modify the “SetVerticalExtents” portion to accept a list of values. See below for Dynamo graph and python code. Any additional help would be appreciated.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import*
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
UIunit = Document.GetUnits(doc).GetFormatOptions(UnitType.UT_Length).DisplayUnits
def convunit(x):
return UnitUtils.ConvertToInternalUnits(x,UIunit)
grids = []
for i in IN[2]:
grids.append(UnwrapElement(i))
TransactionManager.Instance.EnsureInTransaction(doc)
for g in grids:
g.SetVerticalExtents(convunit(IN[0]),convunit(IN[1]))
TransactionManager.Instance.TransactionTaskDone()
OUT = grids