Question

How to read the symbology related attributes from a CAD File

  • 18 September 2017
  • 5 replies
  • 3 views

Badge

Hi,

I want to read the following attributes related to symbology from a CAD file and want to store it in Single Attribute by using Json Packer and want to store it into File Geodatabase.

  • Color: Color
  • Template: Template File Source
  • Blocks–> Block Name, Block Rotation, Block Size By, X, Y, Z
  • Lines–> Line Type, Line Type Generation, Line weight, Line Scale, Line Elevation,
  • Area–> Area Entity Type, Fill Pattern Name (if Gradient), Pattern Scale, Gradient Name, Gradient Fill Color 1, Fill Color 2, Fill angle, Fill Origin x, Fill Origin Y.
  • Text–>Text Entity Type, True Type Font Name, Text Shape Name, Text Justification, Text Size, Text Rotation, Text.

I also want to use these attributes by unpacking it in DWG Styler in some another workflow.

Can help in this?

Thanks in advance. Appreciate your quick support.


5 replies

Badge
Please explain the way to expose all the attributes related to symbology or any other method to store the symbology?

 

or

 

Please tell the names of corresponding attribute names for e.g

 

Block Name --> autocad_blockname

 

Block Rotation--> ?

 

Block Size By --> ?

 

X, Y, Z --> ?

 

Area Entity Type --> ?

 

Text Entity Type --> ?

 

 

Others i am able to find corresponding attributes..

 

 

 

 

Badge +2

Hi,

Either you can use attribute exposer or enable the attribites in format attributes in reader

Block Name --> autocad_blockname

Block Rotation--> autocad_rotation

Block Size By --> autocad_xscale. autocad_yscale, autocad_zscale

X, Y, Z --> autocad_block_insert_x, autocad_block_insert_y, autocad_block_insert_z

Area Entity Type --> autocad_entity

Text Entity Type --> I did not understand what does this mean

Userlevel 4
Badge +30

Hi @dheeraj,

Has a interesting link that demonstrate getting format attributs from DWG, very interesting Tutorial.

Thanks,

Danilo

Userlevel 4
Badge +30

Hi,

Either you can use attribute exposer or enable the attribites in format attributes in reader

Block Name --> autocad_blockname

Block Rotation--> autocad_rotation

Block Size By --> autocad_xscale. autocad_yscale, autocad_zscale

X, Y, Z --> autocad_block_insert_x, autocad_block_insert_y, autocad_block_insert_z

Area Entity Type --> autocad_entity

Text Entity Type --> I did not understand what does this mean

Perfect description @pratap

 

Badge +9

For the text entity type attributes:

autocad_draw_direction

autocad_font_bold

autocad_font_charset

autocad_font_italic

autocad_font_typeface

autocad_shape_filename

autocad_shape_name

autocad_text_size

Reply