• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Mentor
    Posts: 366
    Registered: ‎11-24-2003

    VBA automation of iLogic External Rule Fails.

    225 Views, 1 Replies
    03-21-2011 10:52 AM

    VBA automation of iLogic External Rule Fails.

     

    Error says cannot find the External Rule in the current Document.

    Is there some way I can tell the iLogicAuto.Getrule(doc, "RunDll_Test") method that the rule is external and not inside the current document?

    Please use plain text.
    Employee
    Posts: 932
    Registered: ‎02-24-2009

    Re: VBA automation of iLogic External Rule Fails.

    03-24-2011 08:30 AM in reply to: Gruff

    The GetRule function will only work on internal rules.

    Do you want to run the external rule?  If so, use the function:

    iLogicAuto.RunExternalRule(doc, fileName)

    fileName can be a relative or absolute path name.

     



    Mike Deck
    Software Developer
    DLS - Mechanical Design
    Autodesk, Inc.

    Please use plain text.