Inventor General Discussion

Reply
Distinguished Contributor
Orest_iy
Posts: 317
Registered: ‎03-22-2008
Message 1 of 11 (221 Views)
Accepted Solution

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

221 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

*Expert Elite*
mcgyvr
Posts: 6,713
Registered: ‎12-01-2004
Message 2 of 11 (217 Views)

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.

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

Down with IDW/DWG files..... Long live 3D PMI... Hurry it up already..
-------------------------------------------------------------------------------------
2015 Product Design Suite Ultimate
Windows 7 64 bit
Core i7 4820k processor (OC'd to 4.4Ghz), Nvidia GTX 770, 16G RAM


Distinguished Contributor
Orest_iy
Posts: 317
Registered: ‎03-22-2008
Message 3 of 11 (214 Views)

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 

 

*Expert Elite*
mcgyvr
Posts: 6,713
Registered: ‎12-01-2004
Message 4 of 11 (210 Views)

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.

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

Down with IDW/DWG files..... Long live 3D PMI... Hurry it up already..
-------------------------------------------------------------------------------------
2015 Product Design Suite Ultimate
Windows 7 64 bit
Core i7 4820k processor (OC'd to 4.4Ghz), Nvidia GTX 770, 16G RAM


Product Support
alessandro.gasso
Posts: 323
Registered: ‎06-10-2010
Message 5 of 11 (202 Views)

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.
*Expert Elite*
Curtis_Waguespack
Posts: 2,802
Registered: ‎03-08-2006
Message 6 of 11 (194 Views)

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.





Distinguished Contributor
Orest_iy
Posts: 317
Registered: ‎03-22-2008
Message 7 of 11 (189 Views)

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

Distinguished Contributor
Orest_iy
Posts: 317
Registered: ‎03-22-2008
Message 8 of 11 (172 Views)

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

*Expert Elite*
Curtis_Waguespack
Posts: 2,802
Registered: ‎03-08-2006
Message 9 of 11 (162 Views)

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.





Distinguished Contributor
Orest_iy
Posts: 317
Registered: ‎03-22-2008
Message 10 of 11 (156 Views)

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube