3D Design

3D Design

How to import points using a file in SCDM?

    • FAQFAQ
      Participant

      In SCDM, we can open a text file (*.txt) containing the points coordinates of curves. It will generate automatically the curves. From the menu File > Open, select “All Files” filter and select a .txt file. The syntax in the file for 2D curves is the following:
      polyline=false 1 1.5 2.0
      1 1.0 3.2
      1 0.5 2.1
      2 0.3 4.2
      2 4.8 1.9

      The first column contains the number (ID) of the generated line, the second column the x-coordinate and the third column the y-coordinate.

      The file format for 3D curve is the following:
      polyline=false
      3d=true
      0 0 1
      0 1.5 1.2
      1.5 0 2.3
      1 1.5 4.2
      1.5 1.2 5.1
      2.3 4.2 6.2
      5.7 3.1 2.6

      With the option 3d=true, the different curves are delimited by a linebreak. The first column contains the z-coordinate, the second column the x-coordinate and the third column the y-coordinate of the points.

      If we attempt to import only points, we should leave a linebreak after each coordinate data.
      For more details on keywords and text file import option, please refer to the following section of the SCDM help: File Operations > Importing and exporting > Point curve text