3-32 Insert/macro linking

When no command is associated to a block, PowerClic starts the command « INSERT » when you PowerClic it.

If a command is associated to a block, PowerClic will not start the command « INSERT » but the one you will have mentioned in this dialog box.

In the case shown above, when you PowerClic the block « INFO », an Autocad alert signal will appear with the text "This block is called INFO".
Of course, this example would not be relevant, but the 5 common commands with PowerClic have a wider selection of them. 

NB : To bypass the associated command, it is sufficient to click on CTRL when you PowerClic.

 

Pw_Cut_Bl and Pw_Ang_Bl are specially related to the filarial drawing, either for schematic or cartography. Pw_inc_Bl is a very elaborated numeric or alphabetic incrementation command pw_num_bl is kept for it’s compatibility with the former versions of PowerClic but is now obsolete. PW_INC_CUT_BL cumulates the advantages of pw_ang_bl and of pw_inc_bl

PW_CUT_BL allows the insertion of a block with automatic tuning of it.

PW_ANG_BL moreover allows automatic alignment with the support.

The valid supports are: Lines, Polylines, Arc, Circles, Ellipses, and Radii.

 

1: PW_CUT_BL syntax is:

(pw_cut_bl block plan length factor)

with block = name of the block eg: "VALVE"

layer = name of layer eg: "WATER_FROIDE" or "$" or "$c"

factor = insertion factor of the block eg: 1 or "$"

length = length in the drawing block unit eg: 2.5

PW_CUT_BL allows the association of an automatic cut to a schematic block which insertion point is located in the centre.

eg : PowerClic on the red diabolo (the valve) of the drawing PWR_CLIC.DWG and click on any polyline. The block will insert automatically and the polyline is adjusted to the length of the block.

Tips :

Put « $ » instead of layer and the block will insert on the same layer as the polyline selected « $c » will take into account the layer and the color.

Put « $ »instead of factor, and the block will insert at the same scale as the one which you PowerClicked

If the length = 0, the entity is not cut.

2: PW_ANG_BL syntax is:

(pw_ang_bl block layer factor length)

with block = name of block eg: "VALVE"

layer = name of layer eg: "WATER_FROIDE" or "$"

factor = insertion factor of the eg: 1 or "$"

length = length in the drawing block unit eg: 2.5

PW_ANG_BL allows the association of an automatic cut to a schematic block which insertion point is located in the centre.

The difference with pw_cut_bl is that the block will insert according to the angle of the selected polyline.

eg : PowerClic on the green diabolo (the valve) of the drawing PWR_CLIC.DWG and then click on any polyline. The block is automatically inserted and the length of the polyline is adjusted to the block.

Tips :

Put « $ » instead of layer and the block will insert on the same layer as the polyline selected « $c » will take into account the layer and the color.

Put « $ »instead of factor, and the block will insert at the same scale as the one which you Powerclicked

- If the length = 0, the entity is not cut.

3: PW_NUM_BL syntax is :

(pw_num_bl block layer factor mode)

with block = name of the block eg: "NUMERO"

layer = name of the layer eg: "TEXTE"

factor = insertion factor of the block eg: 1 or "$"

mode = alphabetic mode "a" or numeric mode "n"

PW_NUM_BL allows the association of an automatic numeration procedure by incrementation to a block containing at least one visual attribute.

eg : PowerClic on the red square containing an A from the drawing PWR_CLIC.DWG

and click on the black square containing a 1.

Tip : put "$" instead of factor, and the block will insert itself at the same scale as the one which you had Powerclicked

4: PW_INC_BL syntax is

(pw_inc_bl name of the block name of the layer scale )

scale = $ : scale of the selected block

npl = $ : layer selected

PW_INC_BL same as PW_NUM_BL but suggests a more intelligent management of the increments. It allows the utilisation of suffix and prefix and keeps in memory the increments previously used.

Example : If you click on a block containing an attribute with the values of « C », pw_inc_bl automatically suggest to start at « D »

At the next call, it will suggest the letter following the one you had stopped with.

If you click on “AA12JS”, “AA” will be considered as a prefix and “JS” as a suffix

By default the numbering will begin at 13

 

5: PW_INC_CUT_BL which syntax is:

(pw_inc_cut_bl block layer scale length mode)

mode = 't : angle auto , mode = nil = manual

scale = "$" : scale of the selected block

npl = "$" : selected layer. npl = "$c" layer and selected color

This command links pw_cut_bl and pw_inc_bl

To use this command, the block shall contain an attribute.

!WARNING: if no block is defined in your drawing, this option in not available.

Note about the creation of blocks in the view of associating the commands

PW_CUT_BL, PW_INC_CUT_BL or PW_ANG_BL :