Object.SetColor with index

@mzjensen
I would like to ask how to use the node of object.SetColor. Is the colorIndex value of RGB? Can it be used as a string node for storage? What type can the object accept? Can line be used as the input of the object?

It is the ACI index, which is an integer. For example:
1 = red
2 = yellow
3 = green

It’s the same number that you see here.

image


@mzjensen I would like to ask if the OBJECT of this node includes Line. I would like to ask what elements are included .Many thanks :sneezing_face:

The input should be a number, not a string. And yes, any AutoCAD object will work.

1 Like