Match Entity Properties - Polyline - Layer, Linetype, Color

I've got a polyline selected in my code, but how would I go about matching the properties of an existing polyline? Everything I've tried has yielded little results. The following is the latest error

"error : Automation Error. Property [LAYER] not available"

Comments

  • Anthony Apostolaros
    edited May 2023
    The error code doesn't tell us much without seeing the lisp function that returned it.
    But if I were trying to do that I'd use (Command "Matchprop").
  • The error code doesn't tell us much without seeing the lisp function that returned it.
    But if I were trying to do that I'd use (Command "Matchprop").

    I wasn't handling "nil" for a non-existent property, or maybe a value as well was nil. Circling back for someone to have the answer in the future.