CADDIT CAD CAM CNC Software - download AutoCAD compatible design software progeCAD Alibre T-FLEX and more
CADDIT Website Knowledge Base Search:
CL

progeCAD Help

CR
Welcome to progeCAD
Working with progeCAD
Command Reference
CAD System Variables
Programming progeCAD
Full Index (caution - 400kb)

Further Links:

Download progeCAD
Register progeCAD

Learning

T-FLEX PLM tutorial (PDF)
progeCAD IntelliCAD and AutoCAD training 
CATIA 2D 3D design tutorial
Alibre CAD/CAM basic tutorial

Resources

Educational CAD Software Solutions
Python scripting for DOS and Windows
Other free software downloads
CADDIT CAD CAM Forum Australia
__

(lsh integer1 integer2)


Do a bitwise shift.


This function performs a logical shift of bits. Integer1 denotes the number, while integer2 denotes the number of bits to shift integer1. When integer2 is positive, it shifts to the left; negative shifts to the right.

lsh works with integers only. The 1 signifies the bit is on; the 0 signifies it is off.

Examples

Code Returns
(lsh 12 1) 24
(lsh 8 -1) 4
(lsh 24 3) 192

(~ number)

(and expression ...)

(boole function integer1 integer2 ...)

(logand integer1 integer2 )

(logior integer1 integer2 )

(or statement ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language

CADDIT® is a registered trademark in Australia. All Rights Reserved. Comments concerning the content of this site should be addressed to our webmaster. progeCAD is a trademark of ProgeCAD srl. Autodesk® and AutoCAD® are both registered trademarks or trademarks of a third party, and used only for comparison purposes. All other trademarks, trade names or company names referenced herein are used for identification only and are the property of their respective owners. Legal and Terms of Use. Google. Find us on Google+.