Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
378 Views, 3 Replies

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

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

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: Anonymous

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
in reply to: jeremytammik

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

Message 4 of 4
Anonymous
in reply to: jeremytammik

Thank Jeremy,

 

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

 

Kind regards

Hao

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community