Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
Orest_iy
373 Views, 10 Replies

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

Hello

 

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

 

Regards,

Orest Yavtushenko

10 REPLIES 10
Message 2 of 11
mcgyvr
in reply to: Orest_iy

I don't think that is possible.



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 11
Orest_iy
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 

 

Message 4 of 11
mcgyvr
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.



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 5 of 11
alessandro.gasso
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
Fusion 360 – Simulation/Generative Design Adoption Specialist
Autodesk, Inc.
Message 6 of 11

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 

 

Message 7 of 11
Orest_iy
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

Message 8 of 11

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

Message 9 of 11

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

 

Message 10 of 11

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

Message 11 of 11

Curtis

 

I just mix both rules together and found the custom button creation

It actually not new one but can retreive the existing, for instance iLogic browser in Model ribbon

(Customize and than add requested button to desired ribbon)

 

So here is desired GREAT button, I click on mixed rule and my part is Purchased and retreives the file name.

It can be aplicable to all files as External rule

 

today it was twenty pieces from catalogue, I am designing the new stuff and finally there are just couple

exported parts left in project but all of them I clicked to change status and PartNumber ... toooo boring

 

Thanks again,

Orest

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report