BLKPROPS



The command BLKPROPS search a folder informed ALL DWG and within each, search by a pack specific, which is informed by the user when calling the program.

should be used in conjunction with the command CHANGEBLK

To use:
  1. Calls the command BLKPROPS on the command line AutoCAD.
  2. Enter the path to the folder on the screen that opens:
  3. Enter the name of the text file that will be created with the result:
  4. Enter the name of the block to be sought within each DWG:
  5. Enter the name of the property "visibility state" if any. Dynamic blocks usually have such a property that the block representing different ways:
  6. Wait process, at the end you will see a message informing the end of execution:


At the end of the process will be created the text file with the properties of the blocks with their attributes.

The file created separate columns possess the character set in the settings file ("TBN2CAD.ini", section [BLKPROPS], variable TAB) which is a number (the tab character is the number 9).

The properties listed are grouped into blocks of columns and the first row of the file contains the column names:
  1. "DRAWING" - Tells the dwg absolute path (eg: c:/ temp/geom.dwg)
  2. "HANDLE" - hexadecimal number that identifies the database block in AutoCAD
  3. "ERROR" - Tells the error occurred while reading the block, or OK if no errors
  4. "LAYOUT" - Tells the name of the layout where the block was found (model, Layout1, Layout2, etc.)
  5. "blockname" - Tells the name of the block. Dynamic Blocks often change the name of the block to a name hidden, those with an asterisk in the name (eg *U22)
  6. "X" - Tells the X coordinate in the WCS insertion point of the block
  7. "Y" - Tells the Y coordinate in the WCS insertion point of the block
  8. "ESCDWG" - Tells the scale block insert
  9. "rotation" - Tells the rotation block insert
  10. "VISIBILITY" - Dynamic Blocks usually have a"Visibility State ", if any, will be informed here
  11. ATT1.... ATTN - The name of the attribute of the block. Will create a column for each attribute

NOTE: numeric values use a point as decimal separator. If you use MS Excel , be careful with that.
An example:
Consider the following block, named STAMP :


When running the program BLKPROPS, DWG files containing it have this result:
DESENHO	HANDLE	ERRO	LAYOUT	BLOCKNAME	X	Y	ESCDWG	ROTACAO	VISIBILITY	NOME_DO_PROJETO	PROGRAMA_Nš	FASE_DO_PROJETO	ÁREA_DO_PROJETO	PÁTIO	DISCIPLINA	ESTAQUEAMENTO	ESCALA	SE	Nš_DA_CONTRATADA	Nš_CLIENTE	REVISAO
C:\temp\exemplo.dwg	A903	OK	Layout2	CARIMBO	1.4495071809506E-12	-2.8421709430404E-14	0.001	0	GEOMÉTRICO/DRENAGEM	PROJETO GEOMETRICO	000000001	DETALHADO	ÁREA_DO_PROJETO	PÁTIO	DISCIPLINA	ESTAQUEAMENTO	1:1000	-	G-001-123	GHB-342	A
C:\temp\exemplo.dwg	95F4	OK	Layout1	CARIMBO	1.4495071809506E-12	-2.8421709430404E-14	0.001	0	GEOMÉTRICO/DRENAGEM	PROJETO GEOMETRICO	000000001	DETALHADO	ÁREA_DO_PROJETO	PÁTIO	DISCIPLINA	ESTAQUEAMENTO	1:1000	-	G-001-123	GHB-342	A
C:\temp\exemplo.dwg	5347	OK	Model	CARIMBO	97.5192702600576	-37.1841748881155	0.001	0	GEOMÉTRICO/DRENAGEM	PROJETO GEOMETRICO	000000001	DETALHADO	ÁREA_DO_PROJETO	PÁTIO	DISCIPLINA	ESTAQUEAMENTO	1:1000	-	G-001-123	GHB-342	A

transform in that table would be:
DESENHO HANDLE ERRO LAYOUT BLOCKNAME X Y ESCDWG ROTACAO VISIBILITY NOME_DO_PROJETO PROGRAMA_Nš FASE_DO_PROJETO ÁREA_DO_PROJETO PÁTIO DISCIPLINA ESTAQUEAMENTO ESCALA SE Nš_DA_CONTRATADA Nš_CLIENTE REVISAO
C:\temp\exemplo.dwg A903 OK Layout2 CARIMBO 1.4495071809506E-12 -2.8421709430404E-14 0.001 0 GEOMÉTRICO/DRENAGEM PROJETO GEOMETRICO 000000001 DETALHADO ÁREA_DO_PROJETO PÁTIO DISCIPLINA ESTAQUEAMENTO 1:1000 - G-001-123 GHB-342 A
C:\temp\exemplo.dwg 95F4 OK Layout1 CARIMBO 1.4495071809506E-12 -2.8421709430404E-14 0.001 0 GEOMÉTRICO/DRENAGEM PROJETO GEOMETRICO 000000001 DETALHADO ÁREA_DO_PROJETO PÁTIO DISCIPLINA ESTAQUEAMENTO 1:1000 - G-001-123 GHB-342 A
C:\temp\exemplo.dwg 5347 OK Model CARIMBO 97.5192702600576 -37.1841748881155 0.001 0 GEOMÉTRICO/DRENAGEM PROJETO GEOMETRICO 000000001 DETALHADO ÁREA_DO_PROJETO PÁTIO DISCIPLINA ESTAQUEAMENTO 1:1000 - G-001-123 GHB-342 A


Purpose of this program:
Open the result file with MS EXCEL (if the decimal separator is a comma, format the cells to text, or change the tab to point) this table, and check if the values filled in:
  1. The block attributes correspond to our list of documents (name, stake, step, etc.)
  2. Block insert scale is consistent with the SCALE attribute specified in the legend
  3. The file name is consistent with the project title
  4. Rotation sheet is zeroed in paperspace
  5. The insertion point in paperspace is 0,0
  6. The visibility state could control what appears in the caption of the sheet is marked correctly
  7. In case we attribute to control the review, issuance, validation, etc, if they obedencem the rules imposed by the client
  8. Project number is correct (client, contractor)
  9. Review sheet
  10. Have consistent numbering of leaves
  11. Have correct dates

In order, can audit the drawing before delivery