How to force load all dependents in a drawing file

How to force load all dependents in a drawing file

Anonymous
Not applicable
410 Views
1 Reply
Message 1 of 2

How to force load all dependents in a drawing file

Anonymous
Not applicable

Hi,

I have the following use case scenario

1) There is a Inventor drawing , which refers to two different parts
2) All the parts and drawing are stored locally on the disk
3) One of the part is modified on the disk

When I open the Inventor drawing
- Inventor fully loads the modified part in the session
- the second part(unmodified one) is not fully loaded

How can I force Inventor to fully load all dependents irrespective of their last saved state

is there any api/setting/preference that I can use

regards

0 Likes
411 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I have verified using various options

but none works

 

  1. I have an Inventor Drawing  A.idw which refers a part B.ipt
  2. When I open the drawing normally and see the document loaded count, it shows as “1” ( expected )
  3. there was a suggestion to use "OpenWithOptions" with option FastOpen=False
  4. When I open the drawing using openwithoptions and see the document loaded count, it still shows as “1” ( expected count was 2)

 

Attached is the VBA macro snippet for your reference

 

-------CODE-BEGIN--------------------------

Sub ForceOpenDrawingWithDependents()

 

Dim docs As Documents

Set docs = ThisApplication.Documents

 

If Not IsNull(docs) Then

 

    Dim ops As NameValueMap

    Set ops = ThisApplication.TransientObjects.CreateNameValueMap

    ops.Add "FastOpen", False

   

    Dim doc As Document

    Set doc = docs.OpenWithOptions("D:\Data_Set\Inventor_2015\A.idw", ops)

    Debug.Print doc.FullDocumentName

    Debug.Print "Loaded Doc Count: "; docs.LoadedCount

    Debug.Print "Total Doc Count: "; docs.Count

End If

 

End Sub

-------CODE-END--------------------------

0 Likes