I want to fill this text into the dimension LowerCase, like in the pic. - manuel it works well!
I just want to put a text lower in the dimension. The script does not read my for loop, why?
Actualy my test works very fine.
I happy about any help!
KR
Andreas
import clr
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
dimensions = UnwrapElement(IN[0])
text = IN[1]
TransactionManager.Instance.EnsureInTransaction(doc)
results = []
for dim in dimensions:
dim.Above = str(text)
results.append(dim)
TransactionManager.Instance.TransactionTaskDone()
OUT = results
dimensions = UnwrapElement(IN[0])
text = IN[1]
TransactionManager.Instance.EnsureInTransaction(doc)
results = []
for dim in dimensions:
numOfSegs = dim.NumberOfSegments
if numOfSegs > 0:
for num in range(numOfSegs):
dim.Segments[num].Above = str(text)
results.append(dim)
else:
dim.Above = str(text)
results.append(dim)
TransactionManager.Instance.TransactionTaskDone()
OUT = results
ThankYou thats a big step… because i have to put the doorhights as strings to the related dimension, thats my next task! …actualy where did you get the vocabolary is this just Python or API stuff also?
I know it, but actualy i have to find out to deal with it. I installed lookUp Table and also use dir(), but it is still hart to find exampels from real projects.
API is just the vocabolary. How to speak with is the challange