Read last used settings for plot and dwg export

Read last used settings for plot and dwg export

GeorgK
Advisor Advisor
400 Views
2 Replies
Message 1 of 3

Read last used settings for plot and dwg export

GeorgK
Advisor
Advisor

Hello together,

 

how could I read the last used settings for print (printer settings) and dwg export?

 

Thank you Georg

0 Likes
401 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi Georg,

 

The DrawingPrintManager seems to contain the last settings used in the Print dialog. I checked in Inventor 2014 

 

And the DWG export settings are saved in the ini file. You can retrieve the ini file's path from the SaveCopyAsOptions - oOptions below:

    Dim oDWGTranslator As TranslatorAddIn
    Set oDWGTranslator = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC2-122E-11D5-8E91-0010B541CD80}")
    
    Dim oContext As TranslationContext
    Set oContext = ThisApplication.TransientObjects.CreateTranslationContext
    oContext.Type = kFileBrowseIOMechanism

    ' Create a NameValueMap object
    Dim oOptions As NameValueMap
    Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap

    
    Dim has As Boolean
    has = oDWGTranslator.HasSaveCopyAsOptions(ThisApplication.ActiveDocument, oContext, oOptions)

 

I hope this helps.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 3

GeorgK
Advisor
Advisor

Thanks for your help.

0 Likes