span8
span4
span8
span4
Dimension features in AutoCAD are defined using format attributes,rather than creating geometry.However,the dimension must be an aggregate of at least one feature,although that feature needs no geometry.There are a large number of format attributes for AutoCAD dimension features,but not all are necessary to create valid dimensions.Since linear dimensions are the most commonly converted form,we have started with them.Other dimension types will be added as we determine the minimal attributes to create them.If you do need to create a dimension not described on this page,pleaseContact Technical Support.
The attached workspace Create_Linear_Dimension.fmw is a simple workspace which shows how to create a linear dimension from scratch.The formats attributes specific to geometry are shown below,along with a snapshot of the workspace.Notice how an aggregate feature is created with a number of dimension-related format attributes.
Diagram of the attributes controlling the dimension geometry
Sample workspace to create a linear dimension
Along with the format attributes that set the geometry,a number of other format attributes are required that describe text,dimension nostyle and type.The following are the minimal format attributes that must be present on the feature to create a linear dimension:
autocad_defpt2.x,autocad_defpt2.y,autocad_defpt2.z- The location of the first dimension point.This point should be along the distance being dimensioned
autocad_defpt3.x,autocad_defpt3.y,autocad_defpt3.z- The location of the second dimension point.This should also be along the distance being dimensioned.
autocad_line_defpoint.x,autocad_line_defpoint.y,autocad_line_defpoint.z- The location of dimension line start.This defines the offset of the dimension line and text from the distance being dimensioned.
autocad_text_midpoint.x,autocad_text_midpoint.y,autocad_text_midpoint.z- The location of the text midpoint.This value can be used to position the text along the dimension line,but only takes effect if the autocad_dim_flag is greater than 127.
autocad_dimension_attach_point- The justification of the dimension text
autocad_dimension_type- The type of dimension(still required even if dim_flag below is set):
autocad_dim_flag- The type of dimension (this overrides autocad_dimension_type,but is necessary for a user defined text location):
autocad_dimension_style_name- The style to use for dimension
autocad_orig_dim_text- Setting this attribute will override AutoCAD's measurement of the dimension.You can use any string,so you can add prefixes or suffixes to your values if desired.
autocad_entity- This must be set to autocad_dimension
How to retain CAD symbology and text in database formats
How to convert SHP to DWG (Esri Shapefile to AutoCAD)
Working with Top10NL and AutoCAD
Basic DWG Block Handling Example: Exploding Block Entities (DWG to PDF)
Viewing and Inspecting AutoCAD DWG Data: Grouping Entities
FME Creates Large AutoCAD DXF Files
Basic DWG Block Handling Example: Preserving Block Entities (DWG to SHP)
© 2019 亚搏在线Safe Software Inc |Legal