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

    Autodesk Inventor

    Reply
    Distinguished Contributor
    Posts: 229
    Registered: ‎03-22-2008
    Accepted Solution

    How to make all imported parts to be opened as Purchased by default?

    176 Views, 10 Replies
    12-09-2011 06:24 AM

    Hello

     

    How to make all imported parts to be opened as Purchased by default?

     

    Regards,

    Orest Yavtushenko

    Please use plain text.
    *Expert Elite*
    Posts: 5,608
    Registered: ‎12-01-2004

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 06:44 AM in reply to: Orest_iy

    I don't think that is possible.

    Please click "Accept as Solution" if this response answers your question.
    -------------------------------------------------------------------------------------
    2012 Product Design Suite Ultimate
    Windows 7 64 bit
    90G OCZ SATA 3 SSD (My SSD is faster than your HDD)
    Core I7 920 processor, ATI HD6970 graphics card, 12G Corsair RAM


    Please use plain text.
    Distinguished Contributor
    Posts: 229
    Registered: ‎03-22-2008

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 06:53 AM in reply to: mcgyvr

    Imported parts are mostly purchased.

    At least mine are 99.9% purchased.

     

    Than will be some wrestling with Inventor to

    turn them back to Purchased since it is tooo relactant to

    do so just in straight way in some cases 

     

    Please use plain text.
    *Expert Elite*
    Posts: 5,608
    Registered: ‎12-01-2004

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 06:54 AM in reply to: Orest_iy

    tools..document settings..bill of materials tab.. change default bom structure to purchased. Not that hard at all really.

    Takes a few seconds.

    Please click "Accept as Solution" if this response answers your question.
    -------------------------------------------------------------------------------------
    2012 Product Design Suite Ultimate
    Windows 7 64 bit
    90G OCZ SATA 3 SSD (My SSD is faster than your HDD)
    Core I7 920 processor, ATI HD6970 graphics card, 12G Corsair RAM


    Please use plain text.
    Product Support
    alessandro.gasso
    Posts: 312
    Registered: ‎06-10-2010

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 07:21 AM in reply to: Orest_iy

    Hi Orest,

     

    Actually, when you import an iges or step file as an Inventor part, the Default BOM Structure is the one of the Standard.ipt template.

     

    So, if you want, you can create a new template, setting the Default BOM Structure to Purchased, name it, for instance, Standard_.ipt template and save it in the Template folder, of course.

     

    Then, before to import the parts, in Windows Explorer, browse to the Templates folder and rename the Standard.ipt template to, for instance, Standard.bak and remove the underscore from the Standard_.ipt, naming it Standard.ipt.

     

    Once you have finish to import the parts, you can restore the original Standard.ipt template.

     

    Of course, it’s up to you to decide, according to your needs, if it’s more convenient for you to follow the suggestion from mcgyvr or this alternative way.

     

    Kind regards,

    Alessandro



    Alessandro Gasso
    Product Support Technical Lead
    MFG - Inventor
    Autodesk, Inc.
    Please use plain text.
    *Expert Elite*
    Curtis_Waguespack
    Posts: 1,988
    Registered: ‎03-08-2006

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 07:51 AM in reply to: Orest_iy

    Hi orest_iy, 

     

    I do much the same thing with many imported parts, but use a small iLogic rule to set the BOM structure as mcgyvr suggests. You can just paste this code into a new ilogic rule and then run the rule after you import a part. I typically do this kind of thing as an external rule, that way it's avalible to be run on any part file I want.

     

    Here's a great article on working with rules from Paul "the CAD Setter Out" Munford:

    http://www.augi.com/library/playing-by-the-ilogic-rules

     

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

     

     

    Dim oDoc As Document
    oDoc = ThisApplication.ActiveDocument
    
    Dim oCompDef As ComponentDefinition
    oCompDef = oDoc.ComponentDefinition
    
    'kDefaultBOMStructure = 51969 
    'kNormalBOMStructure = 51970 
    'kPhantomBOMStructure = 51971 
    'kReferenceBOMStructure = 51972 
    'kPurchasedBOMStructure = 51973 
    'kInseparableBOMStructure = 51974 
    'kVariesBOMStructure = 51975 
    
    oCompDef.BOMStructure = 51973 

     



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

    Please use plain text.
    Distinguished Contributor
    Posts: 229
    Registered: ‎03-22-2008

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 08:08 AM in reply to: mcgyvr

    You mean few second each

     

    it could be 10-20 pieces a day plus changing Part Number which usually not follows the file name .. so really creative way of construction

    Please use plain text.
    Distinguished Contributor
    Posts: 229
    Registered: ‎03-22-2008

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 09:08 AM in reply to: Curtis_Waguespack

    Curtis

     

    Your advise is the best one so far. Yes the rule is changing newbie or any other ipt to Purchased.

     

    There are two additional things which could make this rule the GREAT.

     

    Is it possible to make a custom button in Model ribbon and assign this rule to it? (Like in AutoCAD?)

    The user is mostly work in Model and making one click he could get the happines of changing part status to

    Purchased and not going to Manage - ilogic and etc - ie clicking comparable amount of buttons vs going tools -Doc Settings.

     

    The second possible contribution is changing the Part Number to File Number.

    Mostly Imported parts has some mess with that and it is also annoying changing or at least checking that 

     

    Regards,

    Orest

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

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 09:51 AM in reply to: Orest_iy

    Hi Orest_iy,

     

    Here is the ammeded code, it will pull the file name into the input box and allow the user to accept it as the part number or change it to something else.

     

    As far as making a button, the best way to do this is to create a button on the iLogic browser panel (assuming you're using Inventor 2012). I'm not aware of a way to add an iLogic button to the ribbon, but I know it's been requested in the past.

     

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

     

    Dim oDoc As Document
    oDoc = ThisApplication.ActiveDocument
    
    Dim oCompDef As ComponentDefinition
    oCompDef = oDoc.ComponentDefinition
    
    'kDefaultBOMStructure = 51969 
    'kNormalBOMStructure = 51970 
    'kPhantomBOMStructure = 51971 
    'kReferenceBOMStructure = 51972 
    'kPurchasedBOMStructure = 51973 
    'kInseparableBOMStructure = 51974 
    'kVariesBOMStructure = 51975 
    
    oCompDef.BOMStructure = 51973 
    
    PN = InputBox("Accept the File Name as the Part Number or Enter a new one:", "iLogic", ThisDoc.FileName(False))
    
    iProperties.Value("Project", "Part Number") = PN

     



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

    Please use plain text.
    Distinguished Contributor
    Posts: 229
    Registered: ‎03-22-2008

    Re: How to make all imported parts to be opened as Purchased by default?

    12-09-2011 10:24 AM in reply to: Curtis_Waguespack

    Yes it works

     

    I can do it even for any other file as external rule, guess it is 2012 feature

     

    Looking for creating the buttond in web to make a whole happiness in this question

     

    Thanks,

    Orest Yavtushenko

    Please use plain text.