ID I want to write in the URL type properties field

ID I want to write in the URL type properties field

Anonymous
Not applicable
352 Views
0 Replies
Message 1 of 1

ID I want to write in the URL type properties field

Anonymous
Not applicable
Hello I would like to be able to write in the URL type properties field and put inside the Id of the type of family type.Id
If you can help me?

 

ID I want to write in the URL type properties field
********************************************************************
import clr
import System
clr.AddReference('RevitAPI'
clr.AddReference('RevitAPIUI'
from Autodesk.Revit.DB import * 

app = __revit__.Application
uidoc = __revit__.ActiveUIDocument
doc = __revit__.ActiveUIDocument.Document

t = Transaction(doc, 'Write parameters.')
t.Start()
 
cl_views = FilteredElementCollector(doc)
vptypes = cl_views.OfClass( ElementType ).ToElements()
#__window__.Close()

for type in vptypes:

        print('ID: {0} FAMILLE: {1} TYPE: {2}'.format(
        str(type.Id).ljust(10),
        ElementType.FamilyName.GetValue(type).ljust(70),
        Element.Name.GetValue(type).ljust(70),
        ))
********************************************************************
 
 
Thanks much for your help
Patrick
01-03-2016 18-10-26.png
Thanck
0 Likes
353 Views
0 Replies
Replies (0)