Opening SXF file (SFC/P21)


Opening SXF file

  1. On [File] menu, click [Import] - [Import SFC/P21 File].
    [Open] dialog box will be displayed.
  2. Select an SXF file, and click [Open] button.
    The selected SXF file will be opened.

Restrictions on opening SXF file (SFC/P21)

RootPro CAD can open an SXF (SFC/P21) file of level 2. When opening an SXF file (SFC/P21), the following shape data will be converted to those suited to RootPro CAD.

SXF shape data Shape after conversion
Paper No restrictions
Layer No restrictions
Defined line type No restrictions
User-defined line type No restrictions
Defined color No restrictions
User-defined color No restrictions
Line width No restrictions
Text code No restrictions
Point marker Converted to a point.

* To match the visual size on paper, the size is converted to a size calculated by multiplying by the reciprocal for the locate scale of the part drawing layout.

Line Line (No restrictions)
Polygonal line Polyline (No restrictions)
Circle Circle (No restrictions)
Arc Arc (No restrictions)
Ellipse Ellipse (No restrictions)
Elliptical arc Elliptical arc (No restrictions)
Text elements Text (No restrictions)
Spline curve B-Spline
Dimensions (straight line, angle, radius, diameter, arc length) Converted to respective dimensions (arc length dimensions are converted to arc dimensions).
* To match the visual size on paper, the arrow size is converted to a size calculated by multiplying by the reciprocal for the locate scale of the part drawing layout.
Lead Converted to a lead.

* To match the visual size on paper, the arrow size is converted to a size calculated by multiplying by the reciprocal for the locate scale of the part drawing layout.

Balloon Converted to a balloon.
* Text sizes are adjusted to fit within the balloon.

* To match the visual size on paper, the arrow size is converted to a size calculated by multiplying by the reciprocal for the locate scale of the part drawing layout.

Hatch (defined) Converted to a similar pattern among pattern hatches.
* The patterns are in black.
* The background is white with the transparency set.
Hatch (solid) Converted to a solid hatch.
Hatch (user-defined) Converted to a user-defined hatch.
Hatch (pattern) Converts Umafumi (brick-like pattern) published as specification for SXF (sxf_hatch_style_7_symbol) and 45 degree Kasane Ajiro (diagonal brick-like pattern) (sxf_hatch_style_8_symbol).
Composite shape (part drawing) Converted to a part drawing.
* For the part drawing of the geodetic coordinate system, set the character string "$$SXF_FG" to the explanation of the part drawing.
Composite shape (drawing component) Converted to a drawing component.

* A shape containing a dimension, lead, balloon or point is exploded and located to match the size of the arrow/point to that on paper.

Composite shape (drawing group) Drawing group (without name)
Raster data Converted to an image.
* When a layer for raster data is not defined, the first layer defined on the layer definition table is used.
Contour Shapes defined as contours are converted so that they can contain contour information as their attributes.
Drawing title space Converted as user settings in file properties.
For details on properties, see "Drawing title space" in "SXF Specification V3 Format File."
Clothoid Converted to a polyline. Parameters for clothoid curves are retained as attribute values.
For attribute names, see "Clothoid" in "SXF Specification V3 Format File."

SXF Specification V3 Format File
Background color Background color (Area_Control) displays RGB values as messages on the bottom left of the window when a file is loaded.
Attributes Types of SXF Attribute Addition Mechanisms and Details Attribute Name in RootPro CAD
"Shape ID No." of the attribute addition mechanism for attribute file (ATRF) SXF_ATRF_NUMBER
"Attribute File Name" of the attribute addition mechanism for an attribute file (ATRF) SXF_ATRF_SAF_FILENAME
"Shape ID No." of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_NUMBER
"Shape Name" of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_FEATURE_NAME
"Attribute Name" of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_ATTRIBUTE_NAME
"Attribute Value" of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_ATTRIBUTE_VALUE
"Attribute Type" of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_ATTRIBUTE_TYPE
"Unit" of the attribute addition mechanism for a single attribute (ATRU) SXF_ATRU_ATTRIBUTE_UNIT
"Shape ID No." of the attribute addition mechanism for text features (ATRS) SXF_ATRS_NUMBER
"Attribute Name" of the attribute addition mechanism for text features (ATRS) SXF_ATRS_ATTRIBUTE_NAME
"Attribute Type" of the attribute addition mechanism for text features (ATRS) SXF_ATRS_ATTRIBUTE_TYPE
"Unit" of the attribute addition mechanism for text features (ATRS) SXF_ATRS_ATTRIBUTE_UNIT
Drawing title space Parameter for SXF features RootPro CAD File Properties
Explanation Name of [User Settings] Type of [User Settings]
Project name SXF_PROJECTNAME String
Construction name SXF_CONSTRUCTIONNAME String
Contract type SXF_CONTRACTTYPE String
Title SXF_DRAWINGTITLE String
Drawing Number SXF_DRAWINGNUMBER String
Total (optional) SXF_DRAWINGTOTAL String
Drawing Type SXF_DRAWINGTYPE String
Scale SXF_DRAWINGSCALE String
Drawing Date: Year, Month, Day SXF_DRAWINGDATE Date
Contractor SXF_CONTRACTOR String
Owner SXF_OWNER String
Clothoid Parameters for SXF features Attribute Name in RootPro CAD
Locate base point X coordinate SXF_CLOTHOID_BASE_X
Locate base point Y coordinate SXF_CLOTHOID_BASE_Y
Parameter SXF_CLOTHOID_PARAMETER
Direction flag (0: Counterclockwise, 1: Clockwise) SXF_CLOTHOID_DIRECTION
Rotation angle (degree) SXF_CLOTHOID_ANGLE
Start curve length SXF_CLOTHOID_START_LENGTH
End curve length SXF_CLOTHOID_END_LENGTH

 

Supplemental
RootPro CAD has standard foundation software (SXF common library)
developed by the Japan Construction Information Center on behalf of the Ministry of Land, Infrastructure, Transport and Tourism to import and export SFC/P21 files.

Related topics