Hello,
I stuck, i just want to rebuild this node:
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *
clr.AddReference('System')
from System.Collections.Generic import List
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
#public static Group PlaceInstance(Autodesk.DesignScript.Geometry.Point location, Element groupType)
#{
#var internalType = groupType.InternalElement as Autodesk.Revit.DB.GroupType;
#if (internalType == null)
#throw new
InvalidOperationException(String.Format(Properties.Resources.InvalidGroupType,
nameof(groupType)));
newLocation = IN[0]
internalType= IN[1]
#how can i create the grouptype via string?
TransactionManager.Instance.EnsureInTransaction(doc)
newGroup = Document.Create.PlaceGroup(newLocation, internalType).ToDSType(true).Group
TransactionManager.Instance.TransactionTaskDone()
OUT = newGroup
I know there big pices are missing, first i just want to have this node in python
KR
Andreas