Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Saving parameters to xml (iLogic)

1 REPLY 1
SOLVED
Reply
Message 1 of 2
psp
Enthusiast
1029 Views, 1 Reply

Saving parameters to xml (iLogic)

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?

1 REPLY 1
Message 2 of 2
psp
Enthusiast
in reply to: psp

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.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report