l = (Runde(Maßnahme.Ausdehnung, 2))
w = (Runde(Maßnahme.extentsbreite, 2))
h = (Runde(Maßnahme.extentsheight, 2))
dim olist als neue Arraylist
olist.add(l)
olist.add(w)
olist.add(h)
aufrufen.sort()
iproperties.value("custom", "length") = olist.item(2)
iproperties.value("custom", "width") = olist.item(1)
iproperties.value("custom", "height") = olist.item(0)
klein = olist.item(0)
mittel = olist.item(1)
Größte = olist.item(2)
iproperties.value("custom", "overall_dim") = größte & " x " & mittlere & " x " & kleinste & "mm"
Versuch
dim1e = thisapplication.activedocument.komponentendefinition.parameters.userparameter("dim1")
dim1 = größte
Fangmenge
dim1param = thisapplication.activedocument.komponentendefinition.parameters.userparameters.addbyexpression("dim1", größten, unittypeenum.kmillimeterlengthunits)
dim1param.exposedasproperty = true
Ende Versuch
Versuch
dim2e = thisapplication.activedocument.komponentendefinition.parameters.userparameter("dim2")
dim2 = Mitte
Fangmenge
dim2param=thisapplication.activedocument.komponentendefinition.parameters.userparameters.addbyexpression("dim2", mittel, unittypeenum.kmillimeterlengthunits)
dim2param.exposedasproperty = true
Ende Versuch
Versuch
dim3e = thisapplication.activedocument.komponentendefinition.parameters.userparameter("dim3")
dim3 = kleinste
Fangmenge
dim3param=thisapplication.activedocument.komponentendefinition.parameters.userparameters.addbyexpression("dim3", kleinste, unittypeenum.kmillimeterlengthunits)
dim3param.exposedasproperty = true
Ende Versuch