Citaat van: roy_043 op wo 12 09 2018, 13:40:21Jouw uitspraak dat AutoCAD progn niet kent is niet correct. Progn is een standaard Lisp-functie.Ik krijg deze melding in AutoCad 2009Citaatprogn Unknown command
Jouw uitspraak dat AutoCAD progn niet kent is niet correct. Progn is een standaard Lisp-functie.
progn Unknown command
progn (AutoLISP)Evaluates each expression sequentially and returns the value of the last expressionSupported Platforms: Windows and Mac OSSignatureCode: [Selecteer](progn [expr ...])exprType: Integer, Real, String, List, Symbol, File, Ename (entity name), T, or nilOne or more AutoLISP expressions.ExamplesThe if function normally evaluates one then expression if the test expression evaluates to anything but nil. The following example uses progn to evaluate two expressions following if:Code: [Selecteer](if (= a b) (progn (princ "\nA = B ") (setq a (+ a 10) b (- b 10)) ))
(progn [expr ...])
(if (= a b) (progn (princ "\nA = B ") (setq a (+ a 10) b (- b 10)) ))
Command: (progn (+ 1 2)(+ 3 5))8Command: