Hi everyone,
I’m currently working with the python code for create the new radial/diameter dimension for arc base on the revit API but I did not understand the reason that cannot find the NewRadialDimension or NewDiameterDimension when I was adding “from Autodesk.Revit.Creation import *” as well.
Also my code is
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
app = DocumentManager.Instance.CurrentUIApplication.Application
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
view = UnwrapElement(IN[0])
arc = UnwrapElement(IN[1])
point = UnwrapElement(IN[2])
TransactionManager.Instance.EnsureInTransaction(doc)
dim = doc.Create.NewRadialDimension(view, arc, point)
TransactionManager.Instance.TransactionTaskDone()
OUT = dim
Do you know any reason and please help me on this stuff that will be much appreciated. Many thanks