Skip to main content

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.

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..

 

 

 

 


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


Hi @dheeraj,

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

Thanks,

Danilo


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

 


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