Plug-in for AUTODESK Inventor files
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Plug-in for AUTODESK Inventor files
Hello Mr. Plonka,
My motivation is not creating interoperability between Inventor and FreeCAD, but creating Interoperability between Inventor 2010 and Inventor 2020 .
My preferred programming language is VBA, because it is shipped with Inventor as well as MS-Office, and its so easy to deal with their APIs.
I have attached a Sample iam-UFRxDoc-Disassembly.
Is there a way to exchange email-adresses for further communication? I'm still writing in this forum's language for other users convenience, but i would'nt mind switching to german.
Greetings from Aachen
CSchmitz
My motivation is not creating interoperability between Inventor and FreeCAD, but creating Interoperability between Inventor 2010 and Inventor 2020 .
My preferred programming language is VBA, because it is shipped with Inventor as well as MS-Office, and its so easy to deal with their APIs.
I have attached a Sample iam-UFRxDoc-Disassembly.
Is there a way to exchange email-adresses for further communication? I'm still writing in this forum's language for other users convenience, but i would'nt mind switching to german.
Greetings from Aachen
CSchmitz
- Attachments
-
- SampleUFRxDoc.zip
- (13.61 KiB) Downloaded 106 times
Re: Plug-in for AUTODESK Inventor files
if you fellas decide to go off-forum to discuss, please consider keeping us updated on your efforts. There maybe more 'pioneers' like yourselves that are interested in this endeavor (despite the outcome being for FreeCAD or not). Thanks for your efforts and considerations.
Cheers
Cheers
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Plug-in for AUTODESK Inventor files
Installed the latest stable version of FreeCAD for Windows a few days ago.
The Addon manager complained about missing xlutils and olefile when trying to install the plugin. Installing these using python3 (already had 3.8.5 on the computer) didn't help, but I noticed the FreeCAD Python console said 3.6.6 conda-forge.
Tried installing from the FreeCAD install directory (c:/users/username/AppData/Local/FreeCAD 0.18/bin) like this:
C:\Users\username\AppData\Local\FreeCAD 0.18\bin>python.exe -m pip install xlutils
C:\Users\username\AppData\Local\FreeCAD 0.18\bin>python.exe -m pip install olefile
After this the plugin installed without problems.
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: NorwegianBokmal/Norway (nb_NO)
The Addon manager complained about missing xlutils and olefile when trying to install the plugin. Installing these using python3 (already had 3.8.5 on the computer) didn't help, but I noticed the FreeCAD Python console said 3.6.6 conda-forge.
Tried installing from the FreeCAD install directory (c:/users/username/AppData/Local/FreeCAD 0.18/bin) like this:
C:\Users\username\AppData\Local\FreeCAD 0.18\bin>python.exe -m pip install xlutils
C:\Users\username\AppData\Local\FreeCAD 0.18\bin>python.exe -m pip install olefile
After this the plugin installed without problems.
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: NorwegianBokmal/Norway (nb_NO)
Re: Plug-in for AUTODESK Inventor files
Hello CSchmitz,
I‘m also very interested in understanding the structure of Inventor assembly files.
How did you create the sample UFRxDoc file? Did you translate the M. Plonka‘s code into VBA?
Thanks and have a nice day,
Alex
Re: Plug-in for AUTODESK Inventor files
Hi,
understanding the structure of the UFRxDoc will no result in any new information about how to import IAM files.
The raw structure of the IAM file is the same as the IPT files. You can use the same reader.
First thing should be to uncomment the importer in "init.py" line 13
Second thing: replace in "importerIL.py" line 52
Than you can start reverse engeneering the IAM files by simply importing them into FC - obviously no result will be displayed but :
understanding the structure of the UFRxDoc will no result in any new information about how to import IAM files.
The raw structure of the IAM file is the same as the IPT files. You can use the same reader.
First thing should be to uncomment the importer in "init.py" line 13
Code: Select all
#FreeCAD.addImportType("Autodesk INVENTOR assembly file (*.iam)", "importerIL")
Code: Select all
logError(u"Sorry, AUTODESK's Inventor assemblies not yet supported!")
Code: Select all
if (Import_IPT.read(doc, filename, readProperties)):
return Import_IPT
- while importing Inventor files, a folder with debug information is created.
- .\%ASSMBLY_FILE%_iam\RSeDb.log
- .\%ASSMBLY_FILE%_iam\_.png
- .\%ASSMBLY_FILE%_iam\0002.sat
- .\%ASSMBLY_FILE%_iam\0002_sat.history
- .\%ASSMBLY_FILE%_iam\0082.sat
- .\%ASSMBLY_FILE%_iam\0082_sat.history
- .\%ASSMBLY_FILE%_iam\AmAppSegment.log
- .\%ASSMBLY_FILE%_iam\AmBREPSegment.log
- .\%ASSMBLY_FILE%_iam\AmBrowserSegment.log
- .\%ASSMBLY_FILE%_iam\AmDcSegment.log
- .\%ASSMBLY_FILE%_iam\AmGraphicsSegment.log
- .\%ASSMBLY_FILE%_iam\AmRxSegment.log
- .\%ASSMBLY_FILE%_iam\DesignViewSegment.log
- .\%ASSMBLY_FILE%_iam\iProperties.log
- .\NBNotebookSegment.log
- watch the output-window for error messages. You will get the first instructions about what to do next.
At least SAT files are now availabe - but not usefull as they don't don't contian any bodies. - The AmDcSegment.log contain's the features to creaete your assembly.
Re: Plug-in for AUTODESK Inventor files
OS;Windows10 64bit Japanese
FreeCAD0.19
Installation has normally ended, but the following error occurs at the time of a FreeCAD start, and it can't be used.
18:11:56 During initialization the error "'cp932' codec can't decode byte 0x9f in position 2258: illegal multibyte sequence" occurred in C:\Users\toshi\AppData\Roaming\FreeCAD\Mod\InventorLoader\InitGui.py
FreeCAD0.19
Installation has normally ended, but the following error occurs at the time of a FreeCAD start, and it can't be used.
18:11:56 During initialization the error "'cp932' codec can't decode byte 0x9f in position 2258: illegal multibyte sequence" occurred in C:\Users\toshi\AppData\Roaming\FreeCAD\Mod\InventorLoader\InitGui.py
Re: Plug-in for AUTODESK Inventor files
Hello,
It seems that installation is fine.
Please, would you mind to share the file with me?
Thanks
It seems that installation is fine.
Please, would you mind to share the file with me?
Thanks
-
- Posts: 1
- Joined: Mon Sep 13, 2021 11:35 pm
Re: Plug-in for AUTODESK Inventor files
https://github.com/jmplonka/InventorLoader/issues/51Toshihiko wrote: ↑Sun Apr 18, 2021 9:32 am OS;Windows10 64bit Japanese
FreeCAD0.19
Installation has normally ended, but the following error occurs at the time of a FreeCAD start, and it can't be used.
18:11:56 During initialization the error "'cp932' codec can't decode byte 0x9f in position 2258: illegal multibyte sequence" occurred in C:\Users\toshi\AppData\Roaming\FreeCAD\Mod\InventorLoader\InitGui.py
I solved this problem yesterday
Re: Plug-in for AUTODESK Inventor files
Your first post, welcome to FreeCAD!
Re: Plug-in for AUTODESK Inventor files
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs