3-30 Plug-in

Powerclic plug-ins are applications started on the PowerClic returned selection set.

You can find plug-ins examples in the PowerClic /plug-in directory.

Plug-ins are applications that post-process a select or modify contextual action.

You can create your own plug-ins :

Your designing:

A. has to be declared to Powerclic with the following command:

(PW_PLUGGIN_REGISTER '( [commandname] [list of concerned entities][list help description])))

ex : (pw_pluggin_register "hatch" '("POLYLINE" "LWPOLYLINE" "REGION" "RECTANG" "POLYGONE")'("Hatch the selected items" ))

B. has to recover the previous selection set with the same instruction as :

(setq sel (ssget "_p"))

C. Has to be put in the PowerClic /plug-in directory for an automatic load.

D. If the plug-in is crypted, it must be accompanied with a "txt" same named file, which gives it

description and all other useful information.

Otherwise, this description must appear as a comment.

A prompt command can also be started at loading in order to declare your plug and its author.