Skip to main content
20-Turquoise
April 11, 2023
Solved

WGM; CATIA v5 CATProduct mass is zero CATPart mass is correct

  • April 11, 2023
  • 4 replies
  • 3748 views

Windchill 12.1.2.0

WGM 12.1.0.2

CATIA v5 Release 2018

We are in the testing stage of bringing in CATIA v5 models and drawings into Windchill via Workspace > Tools > Import into a workspace.

Importing is working good except for the mass of the CATProduct's is coming in as zero. The mass for CATPart's is coming in correctly.

 

I have the CAT:MASS defined in Type and Attribute Manger for the CAD Document  custom Mass attribute which is the same one used for Creo Parametric. Since it is working for CATParts I am confident this is setup correctly.

 

I do have a case open with PTC, for several days now, however apparently no one there knows anything about this.

 

I am CATIA (anyversion) illiterate so am probably missing out on something simple. Has anybody successfully pushed CATIA v5 CATProduct mass into Windchill? If so what did you do to get there?

Thanks

Best answer by RandyJones

I finally got a response back from PTC:

 

"Got the feedback from R&D. The behavior reported is as per current design. Here is a brief explanation below.

Whenever import happens every file being imported is treated as separate and independent file, this allows to gain good performance especially with data that contains a lot of products. Additionally it allows replace/reuse managed parts during import with dependencies.
However, in order to extract mass correctly, CATIA requires products to be dependent on children, to load and open it along with its children that has significant performance impact.
This is the main cause for difference in behavior of import ( each file is open one-by-one ) and save to workspace ( one dataset is already open by user with all dependencies )"

 

Apparently they do not care about the "significant performance impact" this puts on the user actually doing the importing to get the mass to update. Seems like a good case for a WGM preference to control this behavior.

 

So for now the work around is to import the CATIA models/drawings then manually open each CATProduct and save to get the mass to update. Not bad for a few but tedious for more than a few. Not to mention the chance to miss one.

4 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
April 12, 2023

Hi @RandyJones 

The mass is stored in your catia model in some parameter 

This parameter needs to be pushed to the windchill

In Type&Attribute Management for a mass attribute you can specify what attribute it is in catia model

Try to define it 

HelesicPetr_0-1681278058268.png

 

 

This should help

 

PetrH

20-Turquoise
April 13, 2023

I already have that setup. I am fairly confident this is setup correctly because CATParts have the correct mass in the workspace. However the mass for all CATProducts is 0. Screenshot from Type and Attribute Management.

 

catiamass.png

16-Pearl
April 13, 2023

Check this option in wgmclient.ini and check then check what kind of bodies are in your CATIA product model.

expose.mass.properties.only.main.body=

20-Turquoise
April 13, 2023

@rhart wrote:

Check this option in wgmclient.ini and check then check what kind of bodies are in your CATIA product model.

expose.mass.properties.only.main.body=


expose.mass.properties.only.main.body is commented out so default to No

 I have tried setting this to Yes however mass still comes in as 0.

As far as I can tell there are no 'bodies' in the CATProducts. The components are CATParts. The same CATParts that come in with the correct mass.

16-Pearl
April 17, 2023

We have the same problem in CATIA v5, but Inventor seems to work.

The CATIA Parts have mass properties but the CATIA Products have 0's for all the mass properties, including inertia, volume etc.

This happens when CATIA Products are added to the workspace using tools > import, but not when creating new or editing CATIA Products.

Not suggesting this as a solution but if I open the imported product in CATIA and check it out and back in again the mass properties appear.

WGM 12.1.2.0

CATIA v5 Release 2018

Inventor Pro 2021

HelesicPetr
22-Sapphire II
22-Sapphire II
April 17, 2023

Hi @rhart 

I'm sure that the configuration is related to the Catia application. You need to set the mass calculation on the assembly or you need to set the mass on assembly that should be propagated to the Windchill somehow. 

 

Iam not Catia expert 😄

 

PetrH

RandyJones20-TurquoiseAuthorAnswer
20-Turquoise
April 27, 2023

I finally got a response back from PTC:

 

"Got the feedback from R&D. The behavior reported is as per current design. Here is a brief explanation below.

Whenever import happens every file being imported is treated as separate and independent file, this allows to gain good performance especially with data that contains a lot of products. Additionally it allows replace/reuse managed parts during import with dependencies.
However, in order to extract mass correctly, CATIA requires products to be dependent on children, to load and open it along with its children that has significant performance impact.
This is the main cause for difference in behavior of import ( each file is open one-by-one ) and save to workspace ( one dataset is already open by user with all dependencies )"

 

Apparently they do not care about the "significant performance impact" this puts on the user actually doing the importing to get the mass to update. Seems like a good case for a WGM preference to control this behavior.

 

So for now the work around is to import the CATIA models/drawings then manually open each CATProduct and save to get the mass to update. Not bad for a few but tedious for more than a few. Not to mention the chance to miss one.

23-Emerald III
April 27, 2023

An old quote I found someplace:

"PTC doesn't care how an engineer works, they only want them to work the PTC way"

20-Turquoise
April 27, 2023

Awesome!