Copy partnumber of content center parts to Iproperty: Stocknumber

Copy partnumber of content center parts to Iproperty: Stocknumber

Anonymous
Not applicable
1,452 Views
13 Replies
Message 1 of 14

Copy partnumber of content center parts to Iproperty: Stocknumber

Anonymous
Not applicable

Hi,

 

I am using Inventor and Vault professional with the content center.

Is there a possibility to copy the Partnumber to the Stocknumber Iproperty field?

 

Thanks

 

Regards,

Jeffrey

 

 

0 Likes
1,453 Views
13 Replies
Replies (13)
Message 2 of 14

MechMachineMan
Advisor
Advisor

If you are talking about standard content, it's probably best to just change the library table through the editor, then refresh the content.


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

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 14

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

This could be do a couple of ways..

 

1.  If you have your own read/write content center library, you can make a stocknumber column in your family table and map its column formula the same as the partnumber column and then map it to the stocknumber iproperty in your part.

 

2.  Same as #1, except modify the content center template (and not the family table) and map stocknumber field to partnumber and replace the family template with the new info.

 

3.  Save all of your content center parts as custom in your assembly and then you can make or copy the partnumber information to stocknumber

 

My vote, in the order they are shown..  Smiley Very Happy

 

Update:  Clarification on @MechMachineMan reply.. This is only possible if you have your own read/write content center library (as I pointed out in item #1/2 above).  If you are just using the out-of-box Inventor CC libraries this is not possible.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 4 of 14

Anonymous
Not applicable

Thanks for the quick replies!

 

 

@Mark.Lancaster

 

1.  If you have your own read/write content center library, you can make a stocknumber column in your family table and map its column formula the same as the partnumber column and then map it to the stocknumber iproperty in your part.

 

How can i fix this for the whole content center (which is installed on the server)?

Do i need to change it on every computer or it goes automatically on other computers?

 

Regards,

Jeffrey

0 Likes
Message 5 of 14

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

Are you saying you do have your own read/write CC library?

 

If yes..  Make the change in the family table in the library.   Do you know how to do this?  Meaning modify (or add) the stock column properties and use the formula field to match the partnumber column.  Finally make sure to map that column to the stocknumber property in your part.

 

Now this only changes the family table and doesn't impact any content center part that you already used in your assembly.  I would suggest you read these articles:

to understand how content center parts work after they have been placed in an assembly.  From there you will know how to address updating locally in your models.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 6 of 14

Anonymous
Not applicable

@Mark.Lancaster

 

Hi,

 

I use the standaard content center library installed on the server (read only).

Can I easy make a custom content center (read/write) and copy the whole content center to the new one?

So I can add the extra column.

 

I just started working in the Vault environment.. So I used only a few bolts until now. So this will not be a problem.

 

Regards,

Jeffrey

0 Likes
Message 7 of 14

Mark.Lancaster
Consultant
Consultant

@Anonymous

 

Yes you can..  Is your Vault server managing your content center libraries or are you still using desktop content center?  What does your Inventor Tools/Application Options/Content center tab state?

 

Anyhow review these articles:

https://www.synergis.com/2014/02/28/working-with-inventor-content-center-part-1-of-3/

https://www.synergis.com/2014/03/17/working-with-autodesk-inventor-content-center-part-2-of-3/

https://www.synergis.com/2014/03/28/working-with-autodesk-inventor-content-center-part-3-of-3/

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 8 of 14

Anonymous
Not applicable

@Mark.Lancaster

 

Vault server manage the content center.

I will try it tomorrow!

 

Thanks

 

Regards,

Jeffrey

0 Likes
Message 9 of 14

Anonymous
Not applicable

You can just add this iLogic rule in your content center parts.

 

SyntaxEditor Code Snippet

iProperties.Value("Project", "Stock number") = iProperties.Value("Project", "Part Number")

 Don't forget to set the event trigger to before save.  

 

I hope this helps.

0 Likes
Message 10 of 14

Anonymous
Not applicable

@Anonymous

 

In the custom content center right? 

Somewhere in the family table...

 

 

Regards,

Jeffrey

0 Likes
Message 11 of 14

Anonymous
Not applicable

First open from content center. Select the part you want to add and open and save the file where you want.

 

pic2.png

 

Inside that file you can add the iLogic rule:

 

iProperties.Value("Project", "Stock number") = iProperties.Value("Project", "Part Number")

 

Then set the event trigger to before save and save file. Then on the Manage tab select the editor it the content center part.

 

pic.png

 

Last right click on the part you want to edit and replace the family template with the part you saved.

 

You are all done. I hope this helps.

0 Likes
Message 12 of 14

Anonymous
Not applicable

@Anonymous

 

If I understand correct..

I have to do it for every content center file which i'm going to use (if i use this manner)??

 

Regards,

Jeffrey

 

0 Likes
Message 13 of 14

Anonymous
Not applicable

Yes but it goes a lot quicker than you might think. I would suggest figuring out all the iLogic you want in the parts before changing them.

 

For example we have ours automatically fill out a lot of custom properties just by the file name.  This is just our plate from content center iLogic.  

It splits the file name to fill out the part number and job number. It also fills in the description correct every time and rounds mass of the plate.

 

SyntaxEditor Code Snippet

'MarkNumber and Job Information 
iProperties.Value("Project", "Part Number") = ThisDoc.FileName(False) 'without extension
Try
  'Filename Convert
	Part_Number = iProperties.Value("Project", "Part Number")
	
	Job_Split = Split(Part_Number, "-")(0)
	Mark_Split = Split(Part_Number, "-")(1)

	iProperties.Value("Custom", "Job") = "=" & Job_Split
	iProperties.Value("Custom", "MarkNumber") = "=" & Mark_Split
Catch
End Try
	
If PlateOrFlatBar = "Plate" Then
	iProperties.Value("Custom", "TF BOM")="=PLATE <Thickness> THK x <Width> x <Length>"
Else
	iProperties.Value("Custom", "TF BOM")="=BAR, FLAT <Thickness> THK x <Width> x <Length> LG"
End If

iProperties.Value("Custom", "Description") = "=<TF BOM>"

'Mass
iProperties.Value("Custom", "Mass")=Round(iProperties.Mass)
iProperties.Value("Custom", "Masskg")=Round(iProperties.Mass*0.45359237)

 

0 Likes
Message 14 of 14

Anonymous
Not applicable

@Mark.Lancaster

 

Hi,

 

I was very busy at work.. 

Sorry for the late response.

 

I managed to copy one bolt type to the content center and mapped the partnumber to the stocknumber property.

Is there a posibillity to add a new family table column to all the content center files at once?

And is it possible to show only the custom content center files when I place a content center part in the assembly?

 

Thanks.

 

Regards,

Jeffrey

0 Likes