aeroanion / free-solidworks-obj-exporter Goto Github PK
View Code? Open in Web Editor NEWA macro to export Solidworks models as .obj files, including .mtl files.
A macro to export Solidworks models as .obj files, including .mtl files.
There is a note at the bottom of the UI that says, "To kill the running macro use Crtl+PauseBreak". After testing this, it appears that it does not actually work. And the Pause/Break button is not included on many modern keyboards.
Be able to output the separate parts in an assembly as separate obj's similar to how STL files can be exported as either the collection of parts in one, or all individually.
Textures applied in Solidworks do not seem to scale correctly when .obj is viewed in Blender or Windows 3D Viewer.
Got a runtime error 91
Private Function getFaceMaterial(sldFace As Object) As String
getFaceMaterial = convArrayToStr(sldFace.MaterialPropertyValues)
Dim getFaceTexture As SldWorks.texture 'look for textures on faces
Dim configName As String
Dim strTexPath As String, strTex As String, strScFact As String, saveTexPath As String
Dim bfaceName As String, savebFaceName As String
Dim featureName As String, saveFeatureName As String
Set getFaceTexture = sldFace.GetTexture(configName)
If Not getFaceTexture Is Nothing Then
strTexPath = getFaceTexture.MaterialName
saveTexPath = collectTexPaths(strTexPath)
strTex = getTextureName(strTexPath)
➡ strScFact = getFaceTexture.ScaleFactor
'Print #3, strTex, "fc"
Else
strTex = ""
strScFact = ""
End If
If Not getFaceMaterial = "" Then 'face's body name for reference name
bfaceName = sldFace.GetBody.Name & " face" '& " fcn"
savebFaceName = collectReferNa
Move the body of the original README.txt to the README.md for this repo.
Make formatting changes, but keep changes to body minimal.
Consider removing or fixing the launch blender and octane functionality.
When "Use reference names" (in the output pane) is checked, an error is thrown:
Run-time error: '9'
Subscript out of range
It would be nice If you could give a progressbar or any other information about the current processing.
I would propose a Task-Scheduler like overview.
The exporter UI window says "v2.0".
Update to the correct version. Or make the version updated from code.
All of the macro's accompanying information need to be updated.
Add a feature so that the user can choose the output coordinate system from the coordinate systems in the feature tree of the part/assembly.
Hi Aeroanion,
thanks for providing the OBJ Exporter on Git.
On the SolidWorks forum, Daniel McRae converted the macro to C#.
https://forum.solidworks.com/thread/54270?messageTarget=all&start=275&mode=comments
Maybe it makes sense to replace the macro with the C# version. Also working together on Git is easier than with SWP macros. Simply contact Daniel McRae. I think this could be an advantage for all users.
Greetings and thanks for your efforts!
Daniel
Would it be useful if the UI indicated file units and gave choices of export units with Meters as the default?
Look at this to see if it actually works.
Is it important to leave the "import_obj.py" script in the repo or is it not relevant or needed anymore?
Update the README if removed.
Been a while since I used this addon but keep getting this popup on parts and assemblies using 2022.
I have tried a few different parts, even a basic cube and have the same issues.
Any ideas?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.