Plug-in for AUTODESK Inventor files

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
CuriosityMan
Posts: 40
Joined: Sun Dec 16, 2018 2:40 pm

Re: Plug-in for AUTODESK Inventor files

Post by CuriosityMan »

Hi,
Here is my drive link for the file .ipt + .stl
https://drive.google.com/open?id=1e4-CU ... yHJMPJH0T4
Thanks you
jmplonka
Posts: 138
Joined: Tue Dec 20, 2016 7:47 am
Location: Vaihingen (Enz), Germany

Re: Plug-in for AUTODESK Inventor files

Post by jmplonka »

Thanks for sharing. The reason for the failure is quite simple: there's a whitespace infront of the extension. As a workaround you can simply remove it.
CuriosityMan
Posts: 40
Joined: Sun Dec 16, 2018 2:40 pm

Re: Plug-in for AUTODESK Inventor files

Post by CuriosityMan »

Thanks you,
Ok I've found the Whitespace.
Now I can opne the file and see the preview .
But none of the strategy works (SAT nativ or STEP), it crash.
If I try native here is the crash report.
ERROR> PmBRepSegment(001B): ASM - Index out of range (7FFFFFFF>1E7)!
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerIL.py", line 91, in open
reader = read(doc, filename, True)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerIL.py", line 37, in read
if (Import_IPT.read(doc, filename, readProperties)):
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\Import_IPT.py", line 210, in read
ReadElement(ole, fname, doc, counter, readProperties)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\Import_IPT.py", line 54, in ReadElement
ReadRSeMetaDataB(dataB, seg)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerReader.py", line 751, in ReadRSeMetaDataB
reader.ReadSegmentData(newFile, data)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerSegment.py", line 728, in ReadSegmentData
self.segment.tree = buildTree(file, self.segment.elementNodes)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerSegment.py", line 240, in buildTree
resolveParentNodes(nodes)
File "C:\Users\Seb\AppData\Roaming\FreeCAD\Mod\InventorLoader-master\importerSegment.py", line 225, in resolveParentNodes
if (child.parent is None):
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'parent'
Last edited by CuriosityMan on Thu Jan 10, 2019 12:28 pm, edited 1 time in total.
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Plug-in for AUTODESK Inventor files

Post by yorik »

Only now I realize this addon is able to import SAT files!! :o
Amazing work @jmplonka!!
CuriosityMan
Posts: 40
Joined: Sun Dec 16, 2018 2:40 pm

Re: Plug-in for AUTODESK Inventor files

Post by CuriosityMan »

I will contact him directly with a PM.
jmplonka
Posts: 138
Joined: Tue Dec 20, 2016 7:47 am
Location: Vaihingen (Enz), Germany

Re: Plug-in for AUTODESK Inventor files

Post by jmplonka »

yorik wrote: Thu Jan 10, 2019 12:21 pm Only now I realize this addon is able to import SAT files!!
Not 100% - the SAT file can either be:
  • imported "natively" => probs with surfaces.
  • converted to STEP => no wires without surfaces/solids because STEP-importer ignores them!
BTW: some of the SAT surves can't be handled!

If you are searching for other importers, jutst have a look at my Importer3D:
  • Autodesk Maya (*.md)
  • GSkin-Mesh (*.gsm)
  • 3D Studio Max (*.max and *.3ds)
  • LightWave Object (*.lwo)
-Jens
jmplonka
Posts: 138
Joined: Tue Dec 20, 2016 7:47 am
Location: Vaihingen (Enz), Germany

Re: Plug-in for AUTODESK Inventor files

Post by jmplonka »

CuriosityMan wrote: Thu Jan 10, 2019 12:34 pm I will contact him directly with a PM.
Should be fixed now - sorry for the beeing so late.
jmplonka
Posts: 138
Joined: Tue Dec 20, 2016 7:47 am
Location: Vaihingen (Enz), Germany

Re: Plug-in for AUTODESK Inventor files

Post by jmplonka »

Preview for Version 0.14 (move Plugin to WorkBench): starting with view providers for implemented features I also started providing these in a workbench:
Workbench_IL.png
Workbench_IL.png (18.63 KiB) Viewed 2573 times
Just give me some time to do some final testing.
jmplonka
Posts: 138
Joined: Tue Dec 20, 2016 7:47 am
Location: Vaihingen (Enz), Germany

Re: Plug-in for AUTODESK Inventor files

Post by jmplonka »

My first Version of the Inventor-Workbench is ready now.
The Toolbar is arranged like the ribbon bar in Inventor for comfort reasons while switching between the two tools.
Some of the Features are not available and therefore grayed out.
  1. create Toolbar:
    TB_Create_plain.png
    TB_Create_plain.png (13.85 KiB) Viewed 2516 times
    • Sketches
      • 2D-Sketch - invokes Sketchers command to create a 2D-Sketch,
      • 3D-Sketch - creates a Group of Draft geometries - Needs to be extended by constraints (pending work)
    • Sketch-Blocks - create a reusable block from inside a Sketch
    • Extrude - invokes Part's Extrude command
    • Revolve - invokes Part's Revolve command
    • Loft - invokes Part's Loft command
    • Sweep - invokes Part's Sweep command
    • Rib - create a rib between two faces
    • Coil - create a coil - circle sweeped along a Helix
    • Embossengrave/emboss a Sketch on a Surface
    • Freeforms - create a form based on B-Splines
    • Primitive Geometries - invokes PartDesign's creation of primitive geometries.
    • PartVariant factory - creates a set of variant Parameters based on available part properties like Dimension constraints or length Parameter. Have a look at my Part-Variation tutorial
  2. Modify-Toolbar:
    TB_Modify_plain.png
    TB_Modify_plain.png (8.71 KiB) Viewed 2516 times
    • Hole - create a hole based on a sketch
    • Fillet - invokes Part's Fillet command
    • Chamfer - invokes Part's Chamfer command
    • Shell - invokes PartDesign's Thickness command (adds a new aktive Body if necessary)
    • Draft - invokes PartDesign's Draft command (adds a new aktive Body if necessary)
    • Thread - apply a thread on a cylinder
    • Boolean - invokes Part's Boolean command
    • Thicken - invokes Part's 3D-Offset coomand
    • Split - split a geometry by a given tool
    • Direct Edit - [Color]
    • Copy Object - create a copy of the selected object
    • Move Object - translate the position of the selected object
  3. Pattern-Toolbar
    TB_Pattern_plane.png
    TB_Pattern_plane.png (2.89 KiB) Viewed 2516 times
    • Rectangular - invokes Part's creation of a rectangular array
    • Circular - invokes Part's creation of a polar array
    • Sketch driven - invokes Part's creation of a Sketch driven pattern
    • Mirror - invokes Part's Mirror command
  4. Surfaces-Toolbar
    TB_Surfaces_plane.png
    TB_Surfaces_plane.png (6.7 KiB) Viewed 2516 times
    • Stich Faces - create coedging faces
    • Patch Face - create a face from a closed wire
    • Combine Faces - apply a boolean opertation on faces
    • Trim Face - Cut a face into pieces
    • Delete Face - delete the selected face
    • Replace face - replace face
    • Ruled surface - create a ruled surface
  5. Plastic- and SheetMeta-Toolbar:
    TB_Plastic_SheetMeta_plain.png
    TB_Plastic_SheetMeta_plain.png (14.82 KiB) Viewed 2516 times
    Nothing implemented yet.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Plug-in for AUTODESK Inventor files

Post by Kunda1 »

Nice!!!
Perfect timing for 0.18 release. Hows the documentation looking ?
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
Post Reply