WPF node, how to output simple field of Autodesk.DesignScript.Geometry.Point type?

Hi everyone,

I have a simple custom WPF node. I have a private field of type Autodesk.DesignScript.Geometry.Point in my NodeModel class.

I would like to output this value in the BuildOutputAst method.
But I have encountered several problems:

  • AstFactory.BuildPrimitiveNodeFromObject node throws an Internal compiler exception.
  • No Function call method seems to work for me as there are no arguments and no methods, just a field.

So, does anyone have any ideas on how to output a field?
Thank you

here’s a bunch of good samples:

I would approach this differently - why don’t you compute the point inside the function called by the AST?

The function you call in the AST needs to be defined in another assembly.