Saving parameters to xml (iLogic)

Saving parameters to xml (iLogic)

Anonymous
Not applicable
1,133 Views
1 Reply
Message 1 of 2

Saving parameters to xml (iLogic)

Anonymous
Not applicable

I would like to save parameters marked as Key to an XML-file (from an Inventor addin, VB.NET):

 

        Dim addIn As ApplicationAddIn = m_inventorApp.ApplicationAddIns.ItemById("{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}")   'iLogic addin
        addIn.Activate()
        Dim iLogicAddin As Object = addIn.Automation
        iLogicAddin.ParametersXmlSave(invDoc, "c:\temp\text.xml", iLogicAddin.XmlSaveOption.KeysOnly)

 This doesn't run: "Public member 'XmlSaveOption' on type 'iLogicAutomation' not found."

 

The documentation says:

Autodesk.iLogic.Interfaces.IiLogicAutomation.ParametersXmlSave(Inventor.Document,System.String,Autodesk.iLogic.Interfaces.XmlSaveOption)

What is the correct syntax to get the XmlSaveOption?

0 Likes
Accepted solutions (1)
1,134 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

I've found a solution. In case others should need it:

iLogicAddin.ParametersXmlSave(invApp.ActiveDocument, Settings.XMLParameterFile,0) saves all parameters.

iLogicAddin.ParametersXmlSave(invApp.ActiveDocument, Settings.XMLParameterFile,1) saves Key marked parameters only.