What types are supported in nTopCL?

Question:

What file types are supported in nTopCL?

Applies to:

  • nTopCL

Answer:

Supported types for Input

Variable Type Comment Example
Boolean Each value should be true or false -- not enclosed in quotes.
{
  "name": "Rotate Y to Z",
  "type": "bool",
  "value": true,
}
Scalar Each value can be an integer or a float, and units are optional.
{
  "name": "Scalar_0",
  "type": "scalar",
  "value": 5,
  "units": "mm"
}
Integer Each value must be an integer, without units.
{
  "name": "Number of points",
  "type": "integer",
  "value": 6
}
Text Each value should be a string.
{
  "name": "Text_0",
  "type": "text",
  "value": "d:\\auto"
}
File Path Each value should be a valid file path, as a string. Note that paths require double slashes due to JSON string rules.
{
  "name": "Path",
  "type": "file_path",
  "value": "C:\\Outputs\\geometry.stl"
}
Point Each value should be an array of integers or floats.
{
  "name": "Center",
  "type": "point",
  "value": [1, 1, 1],
  "units": "mm"
}
Vector Each value should be an array of integers or floats. Units are optional (more precisely, some vectors actually require units, and if not provided, the notebook will not run)
{
  "name": "Scale",
  "type": "vector",
  "value": [1, 1, 1],
  "units": "mm"
}
Enum Enums refer to any input types that are selected from a dropdown menu in a block input in nTopology. Each value should be an array of integers that represent the desired index of the enum, where 0 represents the first option displayed in the dropdown.
{
  "name": "Lattice Type",
  "type": "enum",
  "value": 0
}

More on this topic:

Keywords:

 file question type ntopcl input supported 
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.