Is it possible to Force Weigt in content center?

Is it possible to Force Weigt in content center?

Darkforce_the_ilogic_guy
Advisor Advisor
550 Views
5 Replies
Message 1 of 6

Is it possible to Force Weigt in content center?

Darkforce_the_ilogic_guy
Advisor
Advisor

I have an custom Library in Concent Center creating V-belt.  Currently I use an Ilogic code to force the weigt to be the right Weigt.  is there a way to do the same in content center is I use the standard function ?. The problem is that I can´t Change an standard content center file after it is create.. with an ilogic .. so I need to find a other way to make sure. that the Weigt in kg is current .. sind we are going this to know how many there is... Is there a way to do it ?

 

bt_0-1680101059561.png

 

0 Likes
Accepted solutions (3)
551 Views
5 Replies
Replies (5)
Message 2 of 6

A.Acheson
Mentor
Mentor
Accepted solution

I don't believe there is a way to do this in content center out of the box.

  1. You can however as a work around open the stored location of the content center file
  2. Copy to a non workspace location to avoid the read only protection.
  3. Open the file in inventor and make the value static.
  4. Replace the file.

AAcheson_0-1680123342507.png

 

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

Darkforce_the_ilogic_guy
Advisor
Advisor

i did know that one .. the problem with that is it force me to create all files before the other users can use it. I would need to do that on 1000+  files.. I did know about that possiblity. but it would be a lot of work

0 Likes
Message 4 of 6

A.Acheson
Mentor
Mentor
Accepted solution

You can do it all by script. There could be a disadvantage in this method so use with caution. 

1. Place all members of content center part

2. Cut files from folder to a writable location.

3. Overide mass of part

4. Cut Files back to location. 

 

The only other method I can think of is to model the part accurately to use the correct density. 

 

Having a custom iproperty and calculating separately does help to identify the weight but is a poor workaround. 

 

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

Darkforce_the_ilogic_guy
Advisor
Advisor

is there a way to add the custom properties to the mass  ? the big problem with using the density is that i have to hit 100%, and I need to have the possiblity to custom it. So the Volume might not be 100 % the same as well

 

 

bt_0-1680167010752.png

 

0 Likes
Message 6 of 6

Cadkunde.nl
Collaborator
Collaborator
Accepted solution

I think there is a better way.

 

Save a copy of any part created by the family.

Add custom iProperty - Weight

Make an ilogic rule, something like

iProperties.Mass = cdbl(iProperties.value("Custom", "Weight")

Now add this rule to event "Before Save"

 

Save the file.

Go to content center editor.

Select your custom library

Right click the family and "Replace Family Template"

Select the file you just saved

 

Family Table: Add a column and connect it with custom iproperty Weight

Fill in all the weights

 

Save the family

 

Open a blank assembly1

Go to the family folder (vault or local)

Put all parts in that family folder in assembly1 (you can slect all files and drag in into assembly)

 

Save assembly1 to whatever

Manage tab: Refresh

This updates all existing files with the new table and family template

 

If you are using vault: Vault Tab: Select all children except assembly1: Check in