Inventor API Open drawing and later resolve file ?

Inventor API Open drawing and later resolve file ?

frank_schalla
Advocate Advocate
813 Views
3 Replies
Message 1 of 4

Inventor API Open drawing and later resolve file ?

frank_schalla
Advocate
Advocate

Hello to all.

I have a problem that i dont find any way at the moment over the IV2019 API (or i missed something).

Following Scenario i have.

1) We open a drawing during a automation task (Conversion Engine Teamcenter (DISPATCHER))

2) Some taslk are now done (stamping/conversion/ and so on)

3) Now we want to create a combined 2D/3D DWF for the shop floor people.
The problem is that we now must do activate the "Resolfe File" inside Inventor.

In the attached picture you can see what i mean.

We can not use the Deferred_Update = false

 

Any ideas how i can set this Resolve_Files = true state

 

0 Likes
814 Views
3 Replies
Replies (3)
Message 2 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@frank_schalla,

 

Try below VBA code to resolve file

Sub StartFileResolve()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oModelPanel As BrowserPane
    Set oModelPanel = oDoc.BrowserPanes("DlHierarchy")
    
    oDoc.SelectSet.Clear
    oModelPanel.TopNode.DoSelect
    
     Dim oCommand As ControlDefinition
     Set oCommand = ThisApplication.CommandManager.ControlDefinitions("UCxResolveFileCmd")
     
     oCommand.Execute
End Sub

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 4

frank_schalla
Advocate
Advocate

Hello CHANDRA

Thank's for your help it workes fine.

But it's still strange that there is no document get/set property like

Resolved_Files = true/false

 

 

 

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@frank_schalla,

 

 

It seems like a new wish list. Please post this wish list at idea station using below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes