Message 1 of 1
ID I want to write in the URL type properties field
Not applicable
03-01-2016
09:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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),
))
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
Thanck