UnderAutomation
Any question?

[email protected]

Contact us
UnderAutomation
⌘Q
Universal Robots SDK documentation
Convert position types
Documentation home

Open and edit program and installation files

Decompile UR files like URP program and installation files

  • Edit program files
  • Edit installation files
  • Try it with the Windows example
  • API Reference

Decompile UR files like URP program and installation files

Edit program files

The library can open and edit program files with .urp extension. You can access and modify inner XML.

using System.Xml.Linq;
using UnderAutomation.UniversalRobots.Files;
class FileProgram
{
static void Main(string[] args)
{
URProgram prg = URProgram.Load(@"C:\myPrg.urp");
XElement innerXml = prg.XML;
// Set program associated installation file
// You can also add instructions or change other attributes
innerXml.Attribute("installationRelativePath").Value = "default";
// Save modified program files
// You could then transfer this file to the robot with SFTP
prg.Save(@"C:\myPrg.urp");
}
}

Edit installation files

The library can open and edit installation files with .installation extension.

using System.Xml.Linq;
using UnderAutomation.UniversalRobots.Files;
class FileInstallation
{
static void Main(string[] args)
{
URInstallation prg = URInstallation.Load(@"C:\default.installation");
XElement innerXml = prg.XML;
// Change your installation settings
innerXml.Attribute("showSpeedSliderOnRunTab").Value = "true";
// Save modified program files
// You could then transfer this file to the robot with SFTP
prg.Save(@"C:\default.installation");
}
}

Try it with the Windows example

API Reference

Class
URArchive
C#Python

Contains basic methods to encode and decode a UR archive

MemberTypeDescription
URArchive(XElement)
Constructor
Extension
Property
read only
string
FileName
Property
read only
string
File name that should be used on a UR robot
Name
Property
string
NameAttribute
Property
read only
string
RootElement
Property
read only
string
XML
Property
read only
XElement
XML description of the object
Load(Stream)
Method
static
XElement
Load a UR archive from stream and decode it as XML
Load(string)
Method
static
XElement
Load a UR archive from file path and decode it as XML
Save(Stream)
Method
void
Save encoded file to a stream
Save(string)
Method
string
Save encoded file to a directory, overwrite it if it exists
  • directory : Directory to save the file
Class
URPrograminherits URArchive
C#Python

Functions to compile and decompile a *.urp program file

MemberTypeDescription
URProgram(XElement)
Constructor
Create a URProgram from its XML definition
Extension
Property
read only
string
NameAttribute
Property
read only
string
RootElement
Property
read only
string
EXTENSION
Field
string
Load(Stream)
Method
static
URProgram
Load a program from stream
Load(string)
Method
static
URProgram
Load a *.urp program from file path
Class
URInstallationinherits URArchive
C#Python

Functions to encode and decode a *.installation file

MemberTypeDescription
URInstallation(XElement)
Constructor
Create a URProgram from its XML definition
Extension
Property
read only
string
NameAttribute
Property
read only
string
RootElement
Property
read only
string
EXTENSION
Field
string
Load(Stream)
Method
static
URInstallation
Load an installation file from stream
Load(string)
Method
static
URInstallation
Load a *.installation file from path
View as Markdown

Easily integrate Universal Robots, Fanuc, Yaskawa, ABB or Staubli robots into your .NET, Python, LabVIEW or Matlab applications

UnderAutomation
Contact usLegal

© All rights reserved.