Inhalt

Index

PREV_MODE

PREV_MODE returns 0, if current script execution is during object generation and 1, if current script execution is during preview generation (e.g. if a SmartPart is modified by dragging of handles).

With this parameter you can simplify complex preview calculations (e.g reducing the resolution of curved geometries with RESOL/RISE/RADIUS) and thus improve the performance:

IF PREV_MODE THEN

...(code for preview construction)

ELSE

...(code for final construction)

ENDIF

Remarks

Usable since script version 1.1 (Allplan 2012-1).



Allplan

(C) ALLPLAN GmbH

Privacy policy