Binding to Custom Component Methods

Thanks for the tips. I also need some parameters that are on the UDT tag for some calculations. Currently, I use a script that extracts the ExtendedProperties as follows:

path = "%s.ExtendedProperties" % udtPath
props = system.tag.read(path)
if props.value is not None:
for prop in props.value:
if prop.getProperty().name.lower() == parameterName.lower():
return prop.value
break

Anyone know how I can get these directly from indirect binding? The only idea I can think of is to get all of them in a dataset custom parameter and then reference it when needed.

Also, what is the syntax to indent my code in a code block?