Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Load Selection in console ERROR

(setq lst '(1 74678.6 53741.6 0.0))

(setq result
      (vl-string-subst "" ")"
        (vl-string-subst "" "(" (vl-prin1-to-string lst))
      )
)

Loading this in the Console causes this error
;
(PRINC)
; error : malformed list on input at [read]

The statement inside the result assignment CAN be loaded sucessfully.

https://gyazo.com/4879dd77b1a94e8f4bbef45489337197

//==================
added:
What is the address for the development team so this can be sent direct ( next time )

Comments

  • Dear Kerry,

    many thanks for reporting ... I will check this scenario to see what goes wrong.

    "What is the address for the development team so this can be sent direct ( next time )"
    normally, just send us a support request, it will be handled by the support and development team then.

    Where necessary, small dwg file(s) and code snippets can be attached there as well.
    many greetings !

  • Thanks Torsten
    Version 19.2.07 (x64) revision 61634 en_us
    Win 10

  • Dear Kerry,
    thanks for providing the version :smile: I would have asked for this anyway ...
    just checking the problem ...
    more to come & many greetings !

  • Dear Kerry,

    I found and fixed that problem (for V20) ...
    you might bypass the problem by using "Load Selection in BricsCAD", the result is also shown in Console window/panel.

    thanks & greetings !

  • Thanks Torsten.
    I appreciate the effort and attention to detail.

    As an aside, a cleaner solution to the programming purpose was suggested by Roy :

    (vl-string-trim "()" (vl-prin1-to-string lst))
    

    Regards,

  • Ah, yes ... as we all know, Roy is a real wizard :smile:
    many greetings !

Sign In or Register to comment.
Origami
Origami is the Japanese word for paper folding. ORI means to fold and KAMI means paper and involves the creation of paper forms usually entirely by folding.

Powered by VanillaForums, Designed by Steam