1 Answers
A:
1. Get the DataIO Object
This is typically accessed from a geometry or feature object:
Dim oDataIO As DataIO = oFace.DataIO
2. Create a COM IStream
You can use CreateStreamOnHGlobal from the Windows API to create an in-memory stream:
Dim pStream As IStream
CreateStreamOnHGlobal(IntPtr.Zero, True, pStream)
3. Write to the Stream
Use Inventor’s API to write data:
oDataIO.WriteDataToStream("SAT", pStream)
4. Read from the Stream
You can then read the stream into a byte array or save it to a file:
Dim buffer(1024) As Byte
Dim bytesRead As UInteger
pStream.Read(buffer, buffer.Length, bytesRead)
Find the Best CAD Software
Explore all products with features, pricing, reviews and more
View All SoftwareHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers