Inventor sketchspline to svg Bezier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to write a little utility to export slices of an iPart to a multi-layer SVG file.
This is to drive a friend's DLP printer, the idea being to bypass the lossy export to STL which introduces faceting that he does not like.
So far moving a plane through the part, creating cutlines and exporting element-by-element to SVG paths is looking like it ought to work.
The problem is that some cutlines are created as sketchspline, and I don't _think_ that there is a direct mapping between sketchspline properties and the quadratic and cubic Bezier curves of STL.
The STL curves take a start and an end and either 1 or two "control points" whereas the Inventor sketchspline seems to have a much larger set of knots, weights, etc.
Does anyone know of any sort of equivalance between these terms? Perhaps I need to split the sketchspline into short curves? It seems that this is possible. It is also apparently possible to split the spline into a polyline aproximation, but that seems like missing the point, as that is effectively the same as STL.
So far I have not had much luck at interrogating the sketchpline objects. There are several examples out there that create them, but not a lot of info (that I have found) about poking abot inside pre-existing ones.
I am rather new to Inventor VBA and the Inventor Object Model, but I have very extensive experience in Excel VBA.