home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************/
- /* */
- /* BlueCAD REXX Macro */
- /* */
- /* Example of the use of REXX macro in BlueCAD */
- /* - Selection of primitives - */
- /* */
- /* (c) 1995 CadWare s.r.l. */
- /* */
- /*****************************************************************************/
-
-
- /* Selection of a primitive */
- err = CADSelect( 1 )
-
- if err = 1 then
- do
-
- /* Opens the selection queue */
- sel = CADDbOpenQue( 'SELQUE' )
-
- id = CADDbFirst( sel, 'code' )
- do while id > 0
-
- msg = 'id =' id 'Identifier of the primitive =' code
- CADMsgBox( msg, 'Selected primitive' )
-
- /* Next element in the selection queue */
- id = CADDbNext( sel, 'code' )
- end
-
-
-
- /* Closes the selection queue */
- call CADDbCloseQue ( sel )
- end