Create files with iLogic

Create files with iLogic

Neil_Cross
Mentor Mentor
1,484 Views
4 Replies
Message 1 of 5

Create files with iLogic

Neil_Cross
Mentor
Mentor

Does anyone have any old code which they could kindly share which does something remotely close to the following:

 

I want an iLogic dialog box/form which will create an assembly structure of new files.

The new files created will use a numbering scheme from Vault.

User can specify how many sub levels are in there.

Option to input iProperty description during the process.

 

i.e. Give me a new assembly with 12 sub-assemblies, and it will create the empty physical files like this...

 

{03B6EE52-3A4D-41D3-B9D5-BA58A705391C}.png.jpg

 

Anything remotely close to that would be a great start

 

Thanks very much,

Neil

0 Likes
1,485 Views
4 Replies
Replies (4)
Message 2 of 5

AlexFielder
Advisor
Advisor

Simply put, yes. Kind of:

 

An old project I worked on provided us with pdf files of legacy drawings and a spreadsheet of the metadata associated with each. I wrote a tool which populated a top-level assembly with the child (Part/Assembly) documents as placeholder "disks".

 

After getting annoyed with having to manually replace the "disks" with previously vaulted files, I integrated it with Vault Professional so that (as we built a library of legacy parts) the tool would pull down previous work.

 

Is that similar to what you need?

0 Likes
Message 3 of 5

AlexFielder
Advisor
Advisor

Hi @Neil_Cross 

 

I know you've either solved this by now or thrown in the towel on it but I just stumbled across these rules:

 

https://github.com/koechlm/iLogic-Vault/tree/master/iLogic-Vault-QuickstartLibrary/Sample%20Rules%20...

 

I notice it requires a custom .dll for reasons unknown but the logic is sound otherwise. Perhaps @Markus.Koechl can explain what QuickstartiLogicLibrary.dll does beyond using the default Vault .dlls?  Scratch that, it seems QuickstartiLogicLibrary.dll adds a wrapper around the standard Vault API that makes it easier to work with and retrieve files from Vault.

 

🙂

Message 4 of 5

Markus.Koechl
Autodesk
Autodesk

I confirm that the library mentioned is a wrapper to share Vault API commands in "iLogic" syntax. In other words, to use an iLogic command "AddFile" or "Component.Add" a local file is expected.

Go to the download section as there are PowerPoint documentation, sample codes for each library function and also snippets for fast coding.

To retrieve numbers is not part of the library yet, but #1 priority for the next update early April time frame.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
Message 5 of 5

idealogicERZYZ
Advocate
Advocate

Hello,
I have a problem installing the package. Errors attached. I have Windows 7 Prof and Inventor PL. I can ask for help.

 

Szczegółowe informacje na temat wywoływania debugowania w trybie JIT (just in time)
zamiast tego okna dialogowego znajdują się na końcu tego komunikatu.

************** Tekst wyjątku **************
System.InvalidOperationException: Dokument XML zawiera błąd (2, 2). ---> System.InvalidOperationException: Nie oczekiwano elementu <doc xmlns=''>.
w Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCodeSnippets.Read4_CodeSnippets()
--- Koniec śladu stosu wyjątków wewnętrznych ---
w System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
w System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
w iLogic.CodeSnippetsRead.ReadXML(String fileName)
w iLogic.CodeSnippetsTree.MergeFile(String fileName)
w iLogic.Controls.CustomSnippetsControl.OpenAndMergeSnippetsFile()
w DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
w DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link)
w DevExpress.XtraBars.BarItemLink.OnLinkClick()
w DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
w DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
w DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message& msg)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Zestawy załadowane **************
mscorlib
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.7.3416.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WpfHost
Wersja zestawu: 0.0.0.0
Wersja Win32: 24, 10, 23900, 0000
CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202020/Bin/WpfHost.DLL
----------------------------------------
System
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.7.3451.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
InvIPC
Wersja zestawu: 24.10.23900.0
Wersja Win32: 24.10.23900.0000
CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202020/Bin/InvIPC.DLL
----------------------------------------
System.Core
Wersja zestawu: 4.0.0.0
Wersja Win32: 4.7.3429.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
InvUIModelBrowser
Wersja zestawu: 24.10.23900.0
Wersja Win32: 24.10.23900.0000
CodeBase: file:///C:/Program%20Files/Autodesk/Inventor%202020/Bin/InvUIModelBrowser.DLL
----------------------------------------

etc. the rest of the errors in the attachment

 

errr.JPG

 

 

E

0 Likes