dwfx translator does not honour decals when application.visible=false

dwfx translator does not honour decals when application.visible=false

DynamicObjects
Advocate Advocate
529 Views
3 Replies
Message 1 of 4

dwfx translator does not honour decals when application.visible=false

DynamicObjects
Advocate
Advocate

Hello Autodesk and forum,

 

The following images show the result of calling the dwfTranslatorAddIn for the same assembly.

The first time it is called Inventor is started with InvApp.Visible=true, and you can see the decals are present.

The second time it is called Inventor is started with InvApp.Visible=false, and you can see that the decals are missing.

 

InvApp.Visible=trueInvApp.Visible=true

InvApp.Visible=falseInvApp.Visible=false

Please advise if there is a camera setting or a view setting that i can adjust to achieve the decals as if the InvAppp is visible?

(The reason this is important to us is that we run Inventor from a windows service that by its nature is invisible - so we do not have the ability to run InvApp.Visible=true.)

 

 

Thanks in anticipation.

Regards

Dan.

------------------------------------------------------------------------------------------------------------
Atkins Consultants Ltd UK
+19,000 staff (M&E, Civils, Structural, Geotechnical, Environmental and more)
0 Likes
530 Views
3 Replies
Replies (3)
Message 2 of 4

JaneFan
Autodesk
Autodesk

Hello Dan, 

 

What inventor version are you using? I can't reproduce the decal missing issue when the file being opened from hidden inventor application with Inventor 2018 R1 build. 

Besides, are we at the same page of the code? 

Sub test()
    Dim inv As Inventor.Application
    Set inv = CreateObject("Inventor.Application")
    Dim oDoc As PartDocument
    Set oDoc = inv.Documents.Open(xxxxx)
   
    oDoc.SaveAs "xxxxx\test.dwfx", True
End Sub




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 4

DynamicObjects
Advocate
Advocate

Hi Jane,

 

Not quite the same ... you are testing using a Part file. 

Like you I also have success with part files. 

To reproduce the problem you need to use an Assembly file.

 

I have attached my test assembly file for you. 

 

(We are using Inventor Pro 2016 64-bit, Build 236, Release: 2016.2.3 - Date: Mon 01/30/2017)

 

Regards

Dan

 

------------------------------------------------------------------------------------------------------------
Atkins Consultants Ltd UK
+19,000 staff (M&E, Civils, Structural, Geotechnical, Environmental and more)
0 Likes
Message 4 of 4

JaneFan
Autodesk
Autodesk

Hi Dan, 

 

Thanks for the information and findings. It is an inventor issue in hidden mode and was logged in our internal system. 

Sorry there is no work around to get the decal images show in exported file for now. 

 




Jane Fan
Inventor/Fusion QA Engineer
0 Likes