Remove content center part numbers

Remove content center part numbers

jaboor11
Enthusiast Enthusiast
2,172 Views
26 Replies
Message 1 of 27

Remove content center part numbers

jaboor11
Enthusiast
Enthusiast

Is there a way, in a custom content center part, to eliminate the part number from being automatically populated?  Please see attached images.  It even populates when I modify the part number column in the family table to be blank.content center part numbers.JPGCONTENT CENTER PART IPROPERTIES.JPGfamily table.JPG

0 Likes
Accepted solutions (1)
2,173 Views
26 Replies
Replies (26)
Message 2 of 27

CGBenner
Community Manager
Community Manager

@jaboor11 


From your image, it looks like both the Part Number and Description column do not match what is shown in your iProperties.... have either the BOM or Parts List been manually modified?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!



Chris Benner

Community Manager - NAMER / D&M


0 Likes
Message 3 of 27

jaboor11
Enthusiast
Enthusiast

No it has not the BOM / Parts List has not been modified.  But can you explain what you see that I don't a little better?  I am not clear as to what you see.  Attached is a new image of a new Parts list  / BOM for this drawing.New BOM.JPG

0 Likes
Message 4 of 27

CGBenner
Community Manager
Community Manager

@jaboor11 

 

I do not know how the columns are defined in your Prts List, but this is what I am seeing.  The text in your Part Number iProperty field does not match what is in your Parts List, and the same for Description:

CGBenner_0-1619104970205.png

 

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!



Chris Benner

Community Manager - NAMER / D&M


0 Likes
Message 5 of 27

gregory_nickol
Advocate
Advocate

@jaboor11 

My first guess is that you need to refresh the parts now that you've changed the part number field. When you make changes in the content center editor they do not effect existing parts automatically. They SHOULD Whenever I make a change like that,

  1. I create an empty assembly
  2. Place all the existing family members into it, by navigating to the folder they're stored in, in your case something like C:\Users\Brad\Documents\Inventor\Content Center\[language]\[family folder name], and selecting all, and right click place grounded at origin
  3. Save the assembly somewhere -- it doesn't really matter where, it just needs to be saved to run the next command. I always delete it immediately after I'm done.
  4. Run the refresh command from the manage tab.

If you've already done this, then it might be a weird unintended interaction where the template file has a part number saved in it an it doesn't overwrite if it's blank in the editor. If that's the case, you could try placing a part and saving it as custom, making the part number field blank, then replace the template file with this custom one.

0 Likes
Message 6 of 27

jaboor11
Enthusiast
Enthusiast

Please see attached image.  This is my own, from scratch, i created for content center.  First I created the part, then made it a ipart with a table, then published it.  When I created it I did not have any parameters called part number that column showed up in my content center part and it is messing me up.  I want the part number out of my parts list for fasteners, structural steel, pipe, tube, etc.NEW PART.JPG

0 Likes
Message 7 of 27

jaboor11
Enthusiast
Enthusiast

Yes that is interesting.  My description is defined in the content center family table and the one you see on the drawing is correct.  The part number is defined the same way but I should see that cell empty.  That is my problem with the content center parts.

0 Likes
Message 8 of 27

A.Acheson
Mentor
Mentor

@jaboor11 

I have tested this using inv 2020 with a custom placed part angle copied to custom library. In the cc table ensure the part number column is mapped to the part number iproperty(even if it is blank) . If you do not map the iproperty the default response will be to populate the part number iproperty with the filename on file creation. This is the default behaviour  on standard part creation also. 

In logic terms this might look like this.

With mapping 

Set Partnumber column to blank string

>Partnumber =“”

>iproperty(partnumber)= Partnumber

 

Without mapping

>iproperty(partnumber) =Filename


Tube and pipe and frame generator may affect this behaviour so you may need to switch off settings in there add in menus also otherwise you may still get a part number. 

Here is a thread on tube and pipe settings.  I am able to get a blank partnumber on tube and pipe conduit. 

https://forums.autodesk.com/t5/inventor-forum/content-center-tube-amp-pipe-part-numbers-not-showing/...

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 9 of 27

SharkDesign
Mentor
Mentor

Is your part number actually mapped to the iProperty part number field?

Also, if this part exists on your hard drive, i.e. you already created one, even if you then deleted it from the assembly, it will always use the one on your local drive. You need to delete this and restart inventor to fix it. 

If it's in Vault, it'll pull the one from vault. 

Also try saving your assembly and running the 'refresh' under manage tab > content center

  Inventor Certified Professional
0 Likes
Message 10 of 27

jaboor11
Enthusiast
Enthusiast

Thanks for your response.  I am interested on how I go about doing this.  I am not familiar with the ilogic programming so any help will be appreciated.  I will upload the file in question.

0 Likes
Message 11 of 27

SharkDesign
Mentor
Mentor

have you tried this first?

 

part number.PNG

  Inventor Certified Professional
0 Likes
Message 12 of 27

SharkDesign
Mentor
Mentor

iLogic:

 

go to ilogic tab

right click 'new rule'

Type the following. it says, if the part number is not blank, make it blank. 

If iProperties.Value("Project", "Part Number") <> ""
iProperties
.Value("Project", "Part Number") = ""
End if

 Save the rule

Go to the ilogic ribbon panel > event triggers and drag your rule under 'after open document'.

  Inventor Certified Professional
0 Likes
Message 13 of 27

jaboor11
Enthusiast
Enthusiast

Yes.  It does that on its own.  That is what my problem is.  I can not change that.

 

 

Part Number.JPG

0 Likes
Message 14 of 27

SharkDesign
Mentor
Mentor

You've got '{Member}' in your expression. Change that to  "" and it should make all part numbers blank. Put a space if you like " ".

  Inventor Certified Professional
Message 15 of 27

gregory_nickol
Advocate
Advocate

And after you change that expression, go back to your assembly and run the "refresh" command under the manage tab. The table you're changing tells inventor how to generate the content center files. After they're generated there's not a hard link between the table and the existing files, so you have to manually run the refresh command to tell inventor to compare the parts in your assembly back to that table and update these kind of changes.

0 Likes
Message 16 of 27

SharkDesign
Mentor
Mentor

I just tried it and it didn't like " ".

This works because I just tried it. 

Type " " & " "

Your part number will be a double space, will that do the job you want?

partnumm.PNG

  Inventor Certified Professional
0 Likes
Message 17 of 27

jaboor11
Enthusiast
Enthusiast
Accepted solution

I did what you suggested and now I see the "".  Do I need to type it this way &""?

 

Closer.JPG

 

 

Message 18 of 27

jaboor11
Enthusiast
Enthusiast

I did what you said but it did nothing to change my problem.  Did I miss a step? Do I need to add a custom property in the iproperties for this to work?ilogic.JPG

0 Likes
Message 19 of 27

jaboor11
Enthusiast
Enthusiast

It does not do that it puts "" in instead.Part Number.JPGCapture.JPG

0 Likes
Message 20 of 27

SharkDesign
Mentor
Mentor

That rule should wipe it clean. Depends if it's running or not. 

It's difficult with a CC part because if you've made the part before you'll have a file already on your computer. iLogic isn't really meant to be used on CC parts. 

 

To test that it's working. Start a new part, just a cube. Put that ilogic code in your rule. 

Type something in the iproperty part number and save it. Run the rule by right clicking on it. Check your iProperties and it should be blank now. 

What you need to do, is create a custom version of the CC part, add the rule, then apply that template to the CC part to do it properly.

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2020/ENU/Inve...

Then refresh the library parts.

 

It'd be much easier to just get it working from the family table, but I think you'd have to have a double space the way I told you above as it will reject a blank part number. Even if you did get it to do blank part numbers, I think when CC saves the part it would automatically put the file name as the part number anyway if it's blank. By having it as a double space it won't automatically populate it. 

  Inventor Certified Professional
0 Likes