Skip to content

Instantly share code, notes, and snippets.

View NithinMahesh1's full-sized avatar

Nithin Mahesh NithinMahesh1

  • EQengineered
View GitHub Profile
@NithinMahesh1
NithinMahesh1 / postExample.cs
Last active November 4, 2019 22:05
Gets set Identity through POST
Innovator inn = this.getInnovator();
Item identity = inn.newItem("Identity", "get");
string owner = this.getProperty("owner", "Administrators");
identity.setProperty("keyed_name", owner);
string itmType = this.getType();
Item itm = inn.newItem(itmType, "get");
itm.setPropertyItem("owned_by_id", identity);
Innovator inn = this.getInnovator();
Item identity = inn.newItem("Identity", "get");
identity.setProperty("keyed_name", "Administrators");
Item itm = inn.newItem("Part", "get");
itm.setPropertyItem("owned_by_id", identity);
return itm.apply();
Innovator inn = this.getInnovator();
Item identity = inn.newItem("Identity", "get");
string owner = this.getProperty("owner", "Administrators");
identity.setProperty("keyed_name", owner);
Item itm = inn.newItem("Part", "get");
itm.setPropertyItem("owned_by_id", identity);
return itm.apply();
@NithinMahesh1
NithinMahesh1 / SidebarGraphNav.js
Created May 6, 2020 20:52
Method to run Graph Nav Action via SideNav
return ModulesManager.using(
['aras.innovator.GraphView/GraphWindowView',
'aras.innovator.core.ItemWindow/DefaultItemWindowCreator'
], function(View, Creator) {
require(['GraphView/Scripts/GraphDataLoader'], function(GraphDataLoader) {
inArgs = '' || {
gvdId: ''
};
inDom = item;
var view = new View(inDom, inArgs);
<section name="ArasCadConverter" type="Aras.ConversionFramework.Converter.Hoops.Configuration.HoopsConverterConfiguration, ArasCadConverter"></section>
<section name="ArasCadConverterPrc" type="Aras.ConversionFramework.Converter.Hoops.Configuration.HoopsConverterConfiguration, ArasCadConverter"></section>
<Converter name="Aras CAD to PDF Converter" type="Aras.ConversionFramework.Converter.Hoops.HoopsConverter, ArasCadConverter" />
<Converter name="Aras PRC to SCS Converter" type="Aras.ConversionFramework.Converter.Hoops.HoopsConverterPrc, ArasCadConverter" />
<name>$(binpath)/Aras.DynamicModelConstructor.dll</name>
<AssemblyCommand dynamicEnabled="True" arguments="--input_pdf_template_file 'C:\ ConversionServer\HOOPSConverter\templates\Blank_Template_L.pdf' --output_pdf '%filepath%\%filename%.pdf' --output_png '%filepath%\%filename%.png' --output_png_resolution '150x150' --output_scs '%filepath%\%filename%.scs' --output_xml_assemblytree '%filepath%\%filename%.xml' --output_prc '%filepath%\%filename%.prc' --background_color '1.0, 1.0, 1.0' --output_logfile '%filepath%\%filename%'" />
<operating_parameter key="dynamic_enabler" value="dynamic_enabler|innovator" />
<ArasCadConverter>
<Application converterPath="C:\HOOPS Converter\bin\converter.exe"/>
<Command arguments="--input_pdf_template_file 'C:\HOOPS Converter\templates\Blank_Template_L.pdf' --output_pdf '%filepath%\%filename%.pdf' --output_png '%filepath%\%filename%.png' --output_png_resolution '150x150' --output_scs '%filepath%\%filename%.scs' --output_xml_assemblytree '%filepath%\%filename%.xml' --output_prc '%filepath%\%filename%.prc' --background_color '1.0, 1.0, 1.0' --output_logfile '%filepath%\%filename%'" />
</ArasCadConverter>
<ArasCadConverterPrc>
<Application converterPath="C:\HOOPS Converter\bin\converter.exe"/>
<Command arguments="--output_scs '%filepath%\%filename%.scs' --output_xml_assemblytree '%filepath%\%filename%.xml' --output_logfile '%filepath%\%filename%.log'" />
</ArasCadConverterPrc>