STL files when they are stored from solidworks are in Binary format. Thus, VB needs to open a binary file for reading.
The general format of the open command is:
Open pathname For mode [Access
access] [lock] As [#]filenumber
[Len=reclength]
The format of this command that I used was:
Open "C:\Block.STL" For Binary Access Read As #1
With that, I opened a file located at C:\Block.STL for Binary mode and I associated it with file #1.
Subscribe to:
Post Comments (Atom)
Solidworks macros eith ChatGPT
Record a simple using thr Solidworks macro recorder, upload it to ChatGPT, and explain to ChatGPT how you want it changed: https://youtu.b...
-
In a regular annotation note, create a stack that looks the way you like. It will take a couple of trial and error attempts since there'...
-
This example is mainly taken from : https://strokescribe.com/en/serial-port-vb-winapi.html#code . It uses WinAPI functions https ://msdn.mic...
No comments:
Post a Comment