• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

ilogic, read-only project files

  • Thread starter Thread starter Donald Haxhiu Work
  • Start date Start date
to set a shortcut key, the easiest and fastest method is to use a vba code like the following:
Code:
sub runrule()
    dim ilogicaddin as inventor.applicationaddin
    dim odoc as inventor.assemblydocument
    dim ailogic as object
   
    if thisapplication.activedocumenttype = kassemblydocumentobject then
   
        set odoc = thisapplication.activedocument
       
        set ilogicaddin = thisapplication.applicationaddins.itembyid("{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}")
       
        set ailogic = ilogicaddin.automation
       
        ' parametri = documento attivo, nome regole ilogic
        call ailogic.runexternalrule(odoc, "readonlyfiles")
       
    end if
end sub
the code must be inserted into a project module of the application, and then the shortcut key should be associated with the macro vba

some references
 
to set a shortcut key, the easiest and fastest method is to use a vba code like the following:
Code:
sub runrule()
    dim ilogicaddin as inventor.applicationaddin
    dim odoc as inventor.assemblydocument
    dim ailogic as object
  
    if thisapplication.activedocumenttype = kassemblydocumentobject then
  
        set odoc = thisapplication.activedocument
      
        set ilogicaddin = thisapplication.applicationaddins.itembyid("{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}")
      
        set ailogic = ilogicaddin.automation
      
        ' parametri = documento attivo, nome regole ilogic
        call ailogic.runexternalrule(odoc, "readonlyfiles")
      
    end if
end sub
the code must be inserted into a project module of the application, and then the shortcut key should be associated with the macro vba

some references
@dsw:
Excuse me, can I enter and ask if it is possible to extend the cycle even at all "lower" levels, to make the "check-in" of the whole set and documents contained in it (as if we were using a pdm)?
thanks in advance for any response.

rich man.
 
You can.
as I wrote in my previous post, I deliberately limited the cycle to the second level.

to have unlimited levels, just use a simple recurring algorithm.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top