FastFiber

OPGELOST Wil graag "MyLayerToolbar" gebruiken

Gestart door AKeng, za 25 08 2018, 09:58:11

Vorige topic - Volgende topic

EddyBeerke

Citaat van: AKeng op wo 12 09 2018, 14:25:04
Citaat van: roy_043 op wo 12 09 2018, 13:40:21
Jouw uitspraak dat AutoCAD progn niet kent is niet correct. Progn is een standaard Lisp-functie.

Ik krijg deze melding in AutoCad 2009
Citeerprogn Unknown command


Zie onderstaande.

Citaat van: AutoCAD 2018 Help
progn (AutoLISP)

Evaluates each expression sequentially and returns the value of the last expression

Supported Platforms: Windows and Mac OS

Signature
(progn [expr ...])
expr
Type: Integer, Real, String, List, Symbol, File, Ename (entity name), T, or nil

One or more AutoLISP expressions.

Examples
The 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:

(if (= a b)
  (progn
    (princ "\nA = B ")
    (setq a (+ a 10) b (- b 10))
  )
)


Op zich wel raar dat er een melding komt dat acad het niet kent.
Zie volgende voorbeeld:
Citaat van: AutoCAD CommandoregelCommand: (progn (+ 1 2)(+ 3 5))
8

Command:
De uitvoer hierbij is dus "8".
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

AKeng

Het is inderdaad vreemd, maar mijn het "probleem" is wel opgelost en dat is het belangrijkste voor mij.