Message 1 of 3
VB : Inventor API Exports with wrong scale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I am working on a Project to export an .ipt as any CAD file with one key press. I got it working but whenever I export to an .stl the scale is wrong. Its exports like option "Units" is set to cm and not mm.
This is my implementation :
Imports InventorDim
ThisApplication As Inventor.Application
In the Start Sub :
InitializeComponent() Try
ThisApplication = Marshal.GetActiveObject("Inventor.Application") Catch ex As Exception MsgBox(ex.ToString())
MsgBox("Unable to get Inventor") End Try
This is the code is used to open the Export window :
Dim Commander As CommandManager Commander = ThisApplication.CommandManager
Dim Controler As ControlDefinition Controler = Commander.ControlDefinitions.Item("AppFileExportCADFormatCmd") Call Controler.Execute()
But whenever the export window is opened via my program the export scale is wrong but when I open the window manually everything is fine. Is there something to add to the API call to get the desired scale?