How to store the extracted 3D point coordinate in txt file

How to store the extracted 3D point coordinate in txt file

Anonymous
Not applicable
543 Views
3 Replies
Message 1 of 4

How to store the extracted 3D point coordinate in txt file

Anonymous
Not applicable

Hello everyone,

 

I have known how to pick a 3D point and show its coordinate. Now, I want to store the coordinate of all the points (that are picked) in a txt file. How to write the code to solve this problem? I hope someone could help me. Thanks very much.

 

Kind regards

Hao

0 Likes
Accepted solutions (1)
544 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Hao,

 

You will need to learn to solve these kind of questions for yourself if you are to make any progress programming.

 

Use Internet searches and you will find thousands of answers to everything.

 

Here is the one that I found for you:

 

http://stackoverflow.com/questions/14069642/writing-data-to-a-text-file

 

Good luck!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

Thanks Jeremy,

 

I know what you mean. But, the problem is related to Revit API that I can select some 3D points from Revit model and shows their coordinates, however, I cannot store these information in a txt file. I don't know how to combine these codes (one is to show 3D points and the other one is to store coordinate into txt file).

 

Kind regards 

Hao

0 Likes
Message 4 of 4

Anonymous
Not applicable

Thank Jeremy,

 

Now, the problem is solved with you suggestion. Thank you for your help.

 

Kind regards

Hao

0 Likes