Changing iproperties in Inventor session?

Changing iproperties in Inventor session?

mucip
Collaborator Collaborator
559 Views
5 Replies
Message 1 of 6

Changing iproperties in Inventor session?

mucip
Collaborator
Collaborator

Hi,

Using Inventor 2013. As you know it's impossible to chang iproperties values of the library parts in inventor session (for instance in asm file). The error message comes "readonly".

 

But when you open iproperties of the file in windows file explorer then it's possible to change iproperties values while library parts open in inventor session in asm.

 

Normally I copy the file location path of the library part and open this path in the windows file explorer and find the part and right-click on file and change iproperties values which I want to change stock number, part description etc...

 

Is it possible to create VBA code or API which can open iproperties box of the selectet part outside of the inventor session in windows file explorer?

 

Regards,

Mucip:)

 

 

0 Likes
560 Views
5 Replies
Replies (5)
Message 2 of 6

Vladimir.Ananyev
Alumni
Alumni

iProperties are accessible from standalone EXE via Apprentice server.

For more details please refer overview on Apprentice in Inventor API Help.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 6

mucip
Collaborator
Collaborator

Hi,

But I want to call this standalone EXE file from Inventor... And standalone EXE program must reach the iproperties of the active part which is opened in Inventor...

 

Regards,

Mucip:)

0 Likes
Message 4 of 6

Vladimir.Ananyev
Alumni
Alumni

Do you want to change iProperties in library parts or in local copies of these library parts? In the first case they are read-only.  IMHO you can do this from Inventor
if the current project doesn't consider this path as library.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 6

mucip
Collaborator
Collaborator

Hi,

Yes I want to change the local copy of the standart parts and they are read-only in the same inventor session. I found the exe file form modmachine page.

 

http://modthemachine.typepad.com/my_weblog/2010/03/iproperties-without-inventor-apprentice.html

 

With this exe file It seems changing the properties is possible. But the main thing, I need to send actual/selected part name via inventor to  this exe program. And changing the iproperties outside of inventor session...

 

Can I call this exe program from inventor and send it selected part name as parameter?...

 

regards,

Mucip:)

 

0 Likes
Message 6 of 6

Vladimir.Ananyev
Alumni
Alumni

Here is a simple VB.NET test for standalone EXE with one argument in command line.

 

  Function Main() As Integer

    Dim Filename As String
    Dim N As Integer = My.Application.CommandLineArgs.Count

    If N = 1 Then
      Filename = My.Application.CommandLineArgs.Item(0).ToString
      'MsgBox(Filename)
      Console.WriteLine("Filename: " & Filename & "    Press any key...")
      Console.Beep()
      Dim oKey As System.ConsoleKeyInfo = Console.ReadKey(True)

      'here you can call your subroutine to change iProperties

      Return 0
    Else
      'MsgBox("Wrong number of arguments")
      Console.WriteLine("Wrong number of arguments.    Press any key...")
      Console.Beep()
      Dim oKey As System.ConsoleKeyInfo = Console.ReadKey(True)
      Return -1
    End If

  End Function 'Main

 


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes