Is it possible to export C3D cogopoints by sending a command to the command line from C#?

Is it possible to export C3D cogopoints by sending a command to the command line from C#?

stephen_mitchell
Contributor Contributor
1,101 Views
3 Replies
Message 1 of 4

Is it possible to export C3D cogopoints by sending a command to the command line from C#?

stephen_mitchell
Contributor
Contributor

Wondering if it is possible to send a command to the command line from C# using .SendStringToExecute to export cogopoints from a drawing? I want to export points using a custom point file format that includes user-defined types in the export.

 

I have written some code in C# that does this but it is a bit slow for large files and not that straight forward to export the UDPs of each point. Wondering if there is an easier solution?

 

 

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

hosneyalaa
Advisor
Advisor
0 Likes
Message 3 of 4

Jeff_M
Consultant
Consultant
Accepted solution

Does your code use the CogoPointsCollection.ExportPoints() method? I've not found it to be slow at all. You can specify the PointFileFormat to use.

https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=e1ad4498-4de7-407a-d2e9-8040441667d6

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 4 of 4

stephen_mitchell
Contributor
Contributor

Thanks Jeff, thats what I was looking for. 

0 Likes