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

    Autodesk Inventor

    Reply
    *Expert Elite*
    mrattray
    Posts: 1,453
    Registered: ‎09-13-2011

    Re: iLogic set BOM via Visibility

    10-24-2012 12:26 PM in reply to: d_f_fleming

    Oops, my falut. I'm not good at multi-tasking! :smileyembarrassed: Find it attached to this post.

    By data set I mean your assembly and it's accompanying parts.

    Mike (not Matt) Rattray

    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎10-17-2012

    Re: iLogic set BOM via Visibility

    10-24-2012 12:37 PM in reply to: mrattray

    I'm working for a tank manufacturing company.

    The data set is not something I can just post and I suspect is too large anyway.

    This is a large assembly with many parts.

    I created LOD's which I now know will not produce the BOM's I require.

    I created view reps from the LOD's and am trying to get ilogic to give me a BOM that reflects only the parts in the View rep.

    The code you sent is giving the same error but in lines 13 and 16 now.

    Please use plain text.
    *Expert Elite*
    mrattray
    Posts: 1,453
    Registered: ‎09-13-2011

    Re: iLogic set BOM via Visibility

    10-25-2012 05:06 AM in reply to: d_f_fleming

    Tanks as in military tanks? If that's the case, I imagine mentioning as much as you have could get you in trouble! :smileytongue:

     

    I have two theories as to why your having problems. Try this version, and if it doesn't work then we'll test theory two.

    Mike (not Matt) Rattray

    Please use plain text.
    Active Member
    mohan.nakka
    Posts: 10
    Registered: ‎06-29-2011

    Re: iLogic set BOM via Visibility

    12-11-2012 02:51 PM in reply to: mrattray

    hi,

     anyone tried the code ?still have the same error messages in line 16 and 19

    Please use plain text.
    Active Member
    mohan.nakka
    Posts: 10
    Registered: ‎06-29-2011

    Re: iLogic set BOM via Visibility

    12-11-2012 02:52 PM in reply to: mrattray

    hi code doesnt work,please help

    Please use plain text.
    *Expert Elite*
    Curtis_Waguespack
    Posts: 1,933
    Registered: ‎03-08-2006

    Re: iLogic set BOM via Visibility

    12-11-2012 03:12 PM in reply to: mohan.nakka

    Hi mohan.nakka,

     

    There seems to be some mystery characters as shown.

    If you retype the word BOMStructure in both places shown it should take care of it.

     

    Autodesk Inventor iLogic Code error.png

     

     

     

    I hope this helps.
    Best of luck to you in all of your Inventor pursuits,
    Curtis
    http://inventortrenches.blogspot.com



      solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.

    Please use plain text.
    Active Member
    mohan.nakka
    Posts: 10
    Registered: ‎06-29-2011

    Re: iLogic set BOM via Visibility

    12-11-2012 03:27 PM in reply to: Curtis_Waguespack

    Thanks Curtis,

          That cleares the error message.I added this rule to an assembly file which has a view rep i created.i added this rule to fire with an event trigger "after save document".but none of the invisible components BOM structure is change to reference.Am i doing it right?Please help.

     

    Thanks a lot

    Regards,

    Mohan

    Please use plain text.
    Active Member
    mohan.nakka
    Posts: 10
    Registered: ‎06-29-2011

    Re: iLogic set BOM via Visibility

    12-11-2012 03:42 PM in reply to: mohan.nakka

    hi curtis,

              i created a sample assembly with few parts and tried the code,it works great.where should i use this code if i have sub assemblies in a top level assembly?

    Please use plain text.
    Distinguished Contributor
    Posts: 183
    Registered: ‎03-15-2012

    Re: iLogic set BOM via Visibility

    12-12-2012 07:15 AM in reply to: mrattray

    I treid this rule and unfortunately does not work for me, I suspect the reason is complicated BOM set up I use.

    Other guys did not complain.

    Please use plain text.
    Active Contributor
    Posts: 29
    Registered: ‎08-13-2012

    Re: iLogic set BOM via Visibility

    04-23-2013 08:17 PM in reply to: Infoseeker

    Why does this only work in Master LoD???

    Please use plain text.