Change the unit quantity in the content center

Change the unit quantity in the content center

tcaG6GZK
Contributor Contributor
1,239 Views
6 Replies
Message 1 of 7

Change the unit quantity in the content center

tcaG6GZK
Contributor
Contributor

I have the problem that profiles that I get from the content center are taken with the units quantity "each". However, I should use the variable "B_L" again. How can I change this permanently in the content center???

 

sorry if I bother you - i have searched in the forum but i was not able to find an answer.

 

cheers

Tom

0 Likes
Accepted solutions (1)
1,240 Views
6 Replies
Replies (6)
Message 2 of 7

CGBenner
Community Manager
Community Manager

@tcaG6GZK 

 

If you are trying to show the number of pieces for each member profile, add a column to your BOM for property "Unit Quantity".  There is no way that I know of to permanently change the Content Center to reflect this, but this property should give you what you need.  It can be also be added to your drawing Parts List.  This was how I always showed frame member quantity in number of pieces instead of a length.

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


Message 3 of 7

tcaG6GZK
Contributor
Contributor

Hi!!

 

Thanks for your quick reply.
However, it is the case that I have profiles that were previously inserted via the Content Center, under "Base Quantity" exactly this variable "B_L" was activated (see picture). I don't know what we have changed here so that this variable is no longer used for conent center profiles.
I would be glad for your help!!!

 

Cheers

TC

0 Likes
Message 4 of 7

tcaG6GZK
Contributor
Contributor

Another solution would be - if there is a possibilty to have a iLogic Routine to change all the conent center profiles in an assembly. If there is an idea => would be great!!

 

thx in advance

TC

0 Likes
Message 5 of 7

James_Willo
Alumni
Alumni

Hi, this document setting is part of the document and not the content center. 

You would need to place your frame gen part as custom, add the setting to your document setting and then update the family table in your Content Center. 

 

I have never done this before so I suggest you make a copy of the family first and test it on the copy. 

 

Place custom

James_Willo_0-1651557444017.png

 

Fiddle the document settings

James_Willo_1-1651557478402.png

 

Save part

 

In the editor, replace family with the part you just saved

James_Willo_2-1651557512207.png

 



James W
Inventor UX Designer
Message 6 of 7

tcaG6GZK
Contributor
Contributor
Accepted solution

Hi

 

I have the solution i need:

 

 


Dim oDoc As AssemblyDocument
oDoc = ThisApplication.ActiveDocument

Dim oOcc As ComponentOccurrence
For Each oOcc In oDoc.ComponentDefinition.Occurrences
oPartDoc = oOcc.Definition.Document
Try
'try to get the value of the parameter
Dim sName As String
sName = "G_L"
oValue = oPartDoc.ComponentDefinition.Parameters.Item(sName).Value
'i = MessageBox.Show(oValue, "Mein iLogic-Dialogfeld", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)

p = oPartDoc.ComponentDefinition.Parameters.UserParameters.Item(sName)
oPartDoc.ComponentDefinition.BOMQuantity.SetBaseQuantity(BOMQuantityTypeEnum.kParameterBOMQuantity, p)

Catch
End Try

Next

 

 

Thx for everything!

 

 

Tom

0 Likes
Message 7 of 7

guido_overath
Enthusiast
Enthusiast

James,

 

perfect. This works very well. 🙂

0 Likes