Karsten Wenzke 12 Report post Posted June 18, 2013 Hey, I' ve created two feature definitions for importing and exporting of point data. Import: The file is read line by line. To create the point as objects you have to create the feature defintion via execute Defintion (right click). The point data in the csv or txt file has to be separated by white space or comma by default. You will find attached the project, the feature definitions and two example files as a zip file. Best regards KarstenImportPointData.fdfwriteCsv.fdbexampleFiles.zipReadAndWriteFiles.fdb 1 Share this post Link to post Share on other sites
Mr. Daniel Floden 0 Report post Posted December 6, 2013 Hi Karsten, I've tried to use the import point data feature definition on its own but cannot get the "section" to be displayed. And if I use the ImportPointData.fdf then it's displaying the curve but not using the datafile from the "ReadFile" feature but is using the Csv-file as indata. Its somewhat confusing. BRDaniel Share this post Link to post Share on other sites
Karsten Wenzke 12 Report post Posted December 6, 2013 Hey Daniel, I've tried to use the import point data feature definition on its own but cannot get the "section" to be displayed. Did you define an input file? I have tested the files again and they are working at least on my system. And if I use the ImportPointData.fdf then it's displaying the curve but not using the datafile from the "ReadFile" feature but is using the Csv-file as indata. Its somewhat confusing.Please try the following steps:download ReadAndWriteFiles.fdb and exampleFiles.zip extract exampleFiles.zip open ReadAndWriteFiles.fdb link test.txt gain to the feature ReadFile now the section should be availableBest Regards Karsten Share this post Link to post Share on other sites
Mr. Felipe Sanchez 0 Report post Posted May 19, 2015 Hi Karsten, I'm trying to expand your example. What I want to do is to define a file with two sets separated by an empty line. In that case, how the empty line should be addressed? Best Felipe Share this post Link to post Share on other sites
Karsten Wenzke 12 Report post Posted May 29, 2015 Hey Felipe, Sorry for the late reply. If I understand you correctly the empty line defines a new set off data right? If so you can use this feature. Please note, that the feature now does not create a table of the imported data.It is based on the import2Ddata. (features > tools > Import 2D data from files) 1) Simply create a feature definition via features > new definition,2) select Reload button.3) choose the downloaded import3DDataWithSeperator.fdf file. I hope this solves your problem. In this post you can find a custom import for geomturbo data files.Which has a string as separator. If you want to use a String instead of an empty line. Cheers, karstenImport3DDataWithSeperator.fdf Share this post Link to post Share on other sites
Mr. Xiaosong Zhang 0 Report post Posted August 17, 2018 Hey Felipe, Sorry for the late reply. If I understand you correctly the empty line defines a new set off data right? If so you can use this feature. Please note, that the feature now does not create a table of the imported data.It is based on the import2Ddata. (features > tools > Import 2D data from files) 1) Simply create a feature definition via features > new definition,2) select Reload button.3) choose the downloaded import3DDataWithSeperator.fdf file. I hope this solves your problem. In this post you can find a custom import for geomturbo data files.Which has a string as separator. If you want to use a String instead of an empty line. Cheers, karstenHi Karsten,Thanks for creating these files. The 3D import works fine for me. How can I import 2D data then? I did not find "import 2D data from files in features". Cheers Share this post Link to post Share on other sites
Ceyhan Erdem 15 Report post Posted August 20, 2018 Hi Xiasong, Please check the link below, https://www.caeses.com/news/2016/removal-of-feature-definitions/ CheersCeyhan Share this post Link to post Share on other sites
Mr. Vishal jadhav 0 Report post Posted February 14, 2019 Great Information Share this post Link to post Share on other sites
model-LINE 0 Report post Posted September 14, 2023 Hi Karsten, could I write the control points from nurbssurface, and read control points to build nurbssurface? Thank you very much. JACK Share this post Link to post Share on other sites
Carl Benz 5 Report post Posted September 14, 2023 Hi Jack, Yes you can. See the CAESES-Help "Features -> File I/O" how to write and read any ASCII-File. How to read and build nurbssurfaces within a featuredefinition, search for the help-page of the "FNurbsSurface" object. There you will find all functions according to the object. The set of functions inherited by "Fpointbasedsurface" will give you all you need. Best, Carl PS: the files from Karsten are created for CAESES4. Share this post Link to post Share on other sites