CADPower->Blocks

Prev: Annotation

Table of Contents

Next: Text

 




Toolbar : Blocks  
     
Menu : CADPower Blocks Block-Related Globally modify block properties
Command line :
CP_MOD_SHBL

Globally changes the block and shape properties like scale factors, rotation angles, relative scaling, relative rotation etc.

Globally modify Blocks and Shapes properties


Rotation/Scaling Options
It is possible to rotate or scale the blocks about their own insertion point or about any other point relative to the insertion point. The relative point can be specified by means of an offset distance in X and Y directions from the insertion point.

If the Scale XY offsets by XY scale factors option is checked, the X and Y offsets are assumed to be defined for a unit scale and if the block has a scale other than 1.0, the offsets are also multiplied by the X and Y scale factors respectively.


Toolbar : Blocks  
      Menu : CADPower Blocks Block-Related Replace block 
Command line : CP_REPBLK 



 

The CP_REPBLK command is used to replace all insertions of one named block with another. The source block must be defined in the drawing while the destination block can be defined in the drawing or available as a DWG file externally. When Blocks with attributes are replaced, their attributes also will be transferred, where possible. The number of attributes in the two blocks need not be the same. As many attributes as possible will be transferred. If there are less number of attributes in the target block than in the source block, they will be lost. If there are more attributes in the target block, they will be left blank. All extended entity data will be transferred to the target block.

Block redefinition options:

Read block definition from external DWG: Checking this option allows one block to be replaced with another block of the same name. The updated block definition will be read from an external DWG which also has the same name as the block. The external DWG file should be available in the AutoCAD / BricsCAD support path.

Read block definition from current DWG: Checking this option allows one block to be replaced with another block of the same name and the updated block definition will be read from within the current drawing.

Reposition target block attributes at source attribute locations: If this option is checked, the target block attributes will be placed at the same location as on the source blocks. If the source block attributes were moved manually, this option ensures that the newly created block attributes will also be positioned at the same location as in the source blocks.




Toolbar : Blocks  
      Menu : CADPower Blocks Block-Related Explode blocks and retain attributes
Command line : CP_XP_ATT

CP_XP_ATT is used to explode blocks, which contain attributes, but this explode results in the attributes to be converted into text entities rather than the attribute definitions (ATTDEFs).

Toolbar : Blocks  
     
Menu : CADPower Blocks Block-Related Compare block attribute and create report
Command line : CP_COMPAREBLKATTS



The CP_COMPAREBLKATTS command compares blocks in the current drawing (with attributes) and creates a report of all blocks which have the identical attribute structure. This is a good QA and analysis tool to identify multiple blocks in drawings which may have identical, slightly different or completely different attribute structures.


Toolbar : Blocks
      Menu : CADPower Blocks Block-Related Connect blocks based on attribute values
Command line :
CP_CONNECTBLOCKS

The CP_CONNECTBLOCKS command connects blocks based on attribute values. You can specify one of more block names, an attribute tag and a connect criteria. All blocks whose attributes match the specified criteria will be joined by a single polyline.

The 'Connect criteria' is specified in two ways:

Geographically Sorted: Checking this option sorts matching attributes purely based on a geographi sort order. The following geographic sort orders are supported:

  • Increasing X values
  • Increasing Y values
  • Decreasing X values
  • Decreasing Y values

By incrementing Point IDs: Checking this option sorts matching attributes purely based on the increasing order of their attribute values, and not geographically.

The values can be entered as follows: 1-50,60,90-End

The above syntax would connect points from 1 to 50, then 60, followed by 90 to the end (maximum) point number in the drawing.

Two special values permitted in the syntax are 'Start' and 'End' which would use the minimum and maximum point number respectively in the drawing.


Points connected using incremting point ids (which are red from integer value attributes)

Points connected geographically by +X sort direction based on matching attributes

Toolbar : Blocks  
      Menu : CADPower Blocks Block-Related Multiple blocks property redefinition
Command line : CP_MREDEFINE


The CP_MREDEFINE command is used to re-define objects in the block definition. All instances (insertions) of the block are automatically updated.

Toolbar : Blocks Tools  
      Menu : CADPower Blocks Block-Related Explode only nested blocks
Command line : CP_EXPLODENESTED

CP_XPLODENESTED explodes only nested blocks i.e blocks which contain atleast one block (INSERT) object in its block definition. Any non-nested blocks will be ignored.

Toolbar : Blocks
      Menu : CADPower Blocks Block-Related Explode blocks to a specified layer
Command line : CP_EXPLODE2LAYER


The CP_EXPLODE2LAYER command explodes selected blocks to a specified layer. This command has two modes of operation. The 'Automatic' option will explode all blocks in the drawing to the specified layer. The 'Manual' option operates only on the selected block(s).

Toolbar : Blocks
     Menu : CADPower Blocks Block-Related   Place a block along each segment of polyline
Command line : CP_DRAWSEGBLOCKS



The CP_DRAWSEGBLOCKS command can be used to place a stretched block along the segments of a line or polyline. The specified block is stretched such that its X scale factor is equal to the length of each segment. This can be a useful tool to create patterns along lines, polylines (often used after CP_EMBHATCH command to create custom embankment hatch patterns).

Note : It is recommended that the insertion point of the block to be stretched be at the left edge of the geometry and the block be defined along the CAD 0 (East) direction.

See Also: CP_EMBHATCH 

Toolbar : Blocks  
      Menu : CADPower Blocks Block-Related Trim Lines, Polylines along intersecting blocks.
Command line : CP_MBLKTRIM
The CP_MBLKTRIM command is used to trim lines / polylines along intersecting blocks.  

Toolbar : Blocks  
      Menu : CADPower Blocks Block-Related Express block insert with pre-set defaults.
Command line : CP_BLOCKINS

CP_BLOCKINS cuts short the number of keystrokes required for a block insertion. Using the CADPower defaults for scale factors and rotation angle, this command allows blocks to be selected from a dialog box and placed by just picking the insertion point. 

Express Block Insert

CP_BLOCKINS Tutorial

Toolbar : Blocks  
     
Menu : CADPower Blocks Block-Related Repeat last block insert
Command line : CP_REPLASTBLK

This is a further improvement over the previous command CP_BLOCKINS. It eliminates the need to even select the block. The last block used by CP_BLOCKINS is automatically used. 

Toolbar : Blocks
      Menu : CADPower Blocks Block-Related Select and export Block to DWG
Command line : CP_BO
This is a quick macro tool that allows to select a block and export the same into a specified DWG.

Toolbar : Blocks
      Menu : CADPower Blocks Block-Related Select and import Block from DWG
Command line : CP_BI
This is a quick macro tool that allows to select a block and import a new definition of the same block from a specified DWG.


Toolbar : Blocks
      Menu : CADPower Blocks Block-Related Slide (move) block relative to its rotation angle
Command line : CP_BLKSLIDE
The CP_BLKSLIDE command is used for moving blocks in a direction which is relative to the rotation angle. It can be also used for increasing or decreasing the spacing between blocks and adjoining features by moving them in a specified direction.

Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related Global attribute editor
Command line : CP_ATTEDIT

The CP_ATTEDIT performs global editing of block attributes as shown in the dialog box below.

Global Attribute Editor



CP_ATTEDIT Tutorial

Toolbar : Blocks
      Menu : CADPower Blocks Attribute-Related Multiple-Choice attribute editor
Command line : CP_EASYATT

The CP_EASYATT command makes entry or editing of attribute data easier by offering a pre-defined, configurable set of values for each attribute, selectable from a drop-down list.

There is also a setup command called CP_EASYATT_SETUP provided which allows the block names / attribute names / attribute values to be specified and optionally saved into ASCII INI files, which can be restored in a later session of AutoCAD.

See Also: CP_EASYATT_SETUP

Toolbar : Blocks
      Menu : CADPower Blocks Attribute-Related Multiple-Choice attribute editor setup
Command line : CP_EASYATT_SETUP

The CP_EASYATT_SETUP allows the block names / attribute names / attribute values to be specified and optionally saved into ASCII INI files, which can be restored in a later session of AutoCAD.

See Also: CP_EASYATT

 

 

 

Toolbar : Blocks
      Menu : CADPower Blocks Attribute-Related Change block, layer/color based on attribute values
Command line : CP_EASYATTCLASS
The CP_EASYATTCLASS command changes the layer and/or color of the selected blocks based on the values of the attributes. The parameters required for this command, namely the values of attributes and the layer/color to be used, are set using the CP_EASYATT_SETUP command. The CP_EASYATT_SETUP command is now a common setup command for the CP_EASYATT command also.

For example, if you have an attribute called CONSTRUCTION_STAGE, and if the possible values are "InProgress", "Completed", "Demolished", you can change the blocks to go to their respective layers or have different colors depending on these values.



Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related   Globally extract block attributes and other properties
Command line : CP_ATTEXT

Quick and Easy Attribute extract - No templates to create

The CP_ATTEXT command extracts selected attributes from blocks along with a number of other basic properties like insertion point, X, Y scale factors, rotation angle and handle.

CP_ATTEXT Tutorial

Toolbar : Blocks
      Menu : CADPower Blocks Attribute-Related Transfer AutoCAD properties to Blocks Attributes
Command line : CP_PROP2ATT

The CP_PROP2ATT command allows object properties from blocks to be transferred as attribute data.



The following properties can be transferred:

Insertion point (DXF Code 10)
Block Name (DXF Code 2)
Handle (DXF Code 5)
Layer (DXF Code 8)
Rotation Angle (DXF Code 50)
Color (DXF Code 62)
Flag (DXF Code 70)
Elevation[Z] from DXF Code 10
X Scale Factor
Y Scale Factor




Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related Globally extract block attribute tags into an ASCII file
Command line : CP_TAGEXT



The CP_TAGEXT command is used to extract block attribute tags and their properties into an ASCII text file.

CP_TAGEXT Tutorial

Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related Rename block attribute tags, defaults and prompts.
Command line : CP_TAGREN

The CP_TAGREN command is used to rename block attribute tags, defaults and prompts. While renaming tag names, the command ensures that any repositioned attributes (moved manually from their default locations) will be retained at their existing locations.

 


Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related Delete block attribute tags from block definition
Command line : CP_TAGDEL
The CP_TAGDEL command is an block definition management tool used to delete attribute tags from a block definition and update all inserted blocks with the new block definition.


Toolbar : Blocks
     Menu : CADPower Blocks Attribute-Related Move Attribute
Command line : CP_ATTMOVE
The CP_ATTMOVE command moves a single picked attribute to a new location.

Toolbar : Blocks
     Menu : CADPower Blocks Attribute-Related Rotate Attribute
Command line : CP_ATTROTATE
The CP_ATTROTATE command rotates a single picked attribute about its insertion point.

Toolbar : Blocks
     Menu : CADPower Blocks Attribute-Related Make attribute readable
Command line : CP_ATTUPRIGHT
The CP_ATTUPRIGHT command rotates a single picked attribute about its insertion point, making it readable by rotating it by 180 degrees if its rotation angle is between 90 and 270 degrees.



Toolbar : Blocks  
      Menu : CADPower Blocks Attribute-Related Transfer attributes between blocks
Command line : CP_ATTXFER / CP_AX

The CP_ATTXFER command transfers attributes from one block to another. You can specify the source attribute tag name and the target attribute tag name to transfer or let CP_ATTXFER do an automatic transfer of all attributes of the same name between source block and target block.

Transfer attributes from one block to another

The CP_ATTXFER command brings up the dialog box each time for setting the parameters. To go directly to the command, use the CP_AX command at the command prompt.


Toolbar : Blocks  
     
Menu : CADPower Blocks Attribute-Related Transfer text strings as block attributes.
Command line : CP_TXT2ATT

The CP_TXT2ATT command is used to transfer text strings as block attributes. Using this command, you can select a block name and specify the attributes you wish to transfer. Each attribute will then be populated with selected text strings.

Toolbar : Blocks
      Menu : CADPower Blocks Attribute-Related Re-order attributes in block
Command line : CP_ATTREORDER
CP_ATTREORDER command is used to reorder attributes in a block. This command offers functionality that is similar to the BATTMAN command of AutoCAD. CP_ATTREORDER command is significant as it makes the attribute re-ordering functionality available for BricsCAD users also. In addition, CP_ATTREORDER allows re-ordering of ATTDEF objects in a block DWG. This is something that is not possible with BATTMAN. BATTMAN requires that the block be first inserted in the current drawing and then the attributes re-ordered. CP_ATTREORDER allows re-ordering of attribute definition at the ATTDEF level also.

Please be aware that CP_ATTREORDER will only re-order the attributes in the block definition. This will come into effect only on future insertions of the block. If you want to update and synchronize the existing instances of blocks with the new attribute order, you must run the CP_REPBLK command and replace each block with the new definition. This does not affect any values assigned to attributes in each block.





Toolbar : Blocks  
     
Menu : CADPower Blocks Zoom to (search) and replace selected text.
Command line :
CP_ZOOMTXT or CP_ZT

Powerful search and replace tool for text and attributes

CP_ZOOMTXT is a tool for text search and replace.

Search embedded text: Enables or disables checking of embedded parts of text or attribute strings.

Case sensitive: Enables or disables case sensitive text handling.

Search Block Attributes also: Enables or disables search block attribute text.

Replace searched TEXT: If enabled, the search text string is replaced with the replace text string

Interactive Replace (confirm each replace):
If enabled, each replace operation will seek confirmation before proceeding.


Search for: Enter text string to search for.

Replace with: Enter text string to replace searched string.

Toolbar : Blocks  
     
Menu : CADPower Blocks Edit block graphics and attribute properties independently.
Command line :
CP_BLKEDIT
The
CP_BLKEDIT command is a block editing tool which allows both block graphics and attributes to be edited independently. Depending on whether the graphics or attributes option is chosen, the block is edited accordingly.




See Also: CP_MOD_SHBL command

Toolbar : Blocks
      Menu : CADPower Blocks Place blocks / attributes position interactively
Command line :
CP_DYNATTPLACE
The
CP_DYNATTPLACE command is used for placing blocks with attributes and move the attribute positions interactively.

Toolbar : Blocks
      Menu : CADPower Blocks Block-related Count occurence of blocks
Command line :
CP_BCOUNT
The
CP_BCOUNT command (or BCOUNT) is a simple block counter. It sums up number of occurences of unique block names selected and displays them in a table. It is also possible to export the same to CSV file. BCOUNT is a FREEWARE command and will not expire in CADPower. This command is provided to make it easy for AutoCAD users who are used to a similar command from Express Tools.

Toolbar : Blocks
      Menu : CADPower Blocks Block-related Interactive XY Scale Editor
Command line :
CP_SCLEDIT
The
CP_SCLEDIT command is an interactive X & Y scale editing tool for blocks.

If offers tools for interactively increasing or decreasing X & Y scale factors of a selected block and visually see the effects of that change on the screen. It functions entirely on the command line and optionally, you can also update an attribute with the X and Y scale factors. This tool can be used with any block but the inspiration to create it arose from the need to interactively size the tile (or panel) block that may need to be precisely scaled in order to fit neatly in a given space.

Suppose, you have placed a standard block as a 600 x 300 panel but want to scale it interactively so that it fits in the given space, this tool is a saviour. You can scale up or down X & Y factors independently in user-controlled amount until you get the desired fit.

YouTube Video Link: https://youtu.be/m562KP_k5Yg

Toolbar : Blocks
      Menu : CADPower Blocks Block-related Interactive XY Scale Flip
Command line :
CP_SCLFLIP




The
CP_SCLFLIP command is an interactive X & Y scale flipping tool for blocks.

If offers tools for interactively flipping the X and Y scale factors of a selected by changing the sign of the scale factors.

For example, if X and Y are the scale factors of the block, the command presents visuallt the scale factors (-X, Y) , (-X, -Y), (X, -Y) and (-X, -Y) and allows you to interactively select the desired scale. Instead of using the properties panel to chnage the scale factors manually, the
CP_SCLFLIP offers a more convenient and visual alternative that lets you zero in quickly on the desired representation.

YouTube Video Link: https://youtu.be/m562KP_k5Yg

Toolbar : Blocks  
     
Menu : CADPower Blocks Search blocks for text strings.
Command line :
CP_SRCHBLK4TXT 

Search Block definitions for text strings

The
CP_SRCHBLK4TXT command searches block definitions for embedded text strings and lists all blocks matching the given text string specifications.

Text String to search: Enter the text string to search here. Wildcards are accepted.

Case sensitive: Checking this option causes the search to be case-sensitive.

Toolbar : Blocks 
      Menu : CADPower Blocks Block Names Editor
Command line :
CP_BLKMAN

The CP_BLKMAN command allows multiple blocks to be renamed in flexible ways using wildcards and patterns.



Prev: Annotation

Table of Contents

Next: Text