Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter mismatch in Product vs Part

Status
Not open for further replies.

solid7

Mechanical
Jun 7, 2005
1,403
US
This is somewhat of a follow-up to an earlier thread, but with a much more specific question.

Basically, I'm having a problem with a system parameter not updating. When I run this test script, I get a different value between the two parameters. There should not be. No matter what I do, I cannot force them to be the same.

product1.Products.Item(1).ReferenceProduct.DescriptionRef displays the correct value.


Code:
Sub CATMain()


Set productDocument1 = CATIA.ActiveDocument
Set product1 = productDocument1.Product

product1.Update

msgbox = product1.Products.Item(1).ReferenceProduct.DescriptionRef
msgbox = product1.Products.Item(1).DescriptionRef


End Sub

Can anyone help me figure out how to make them equal one another?

Thank you.

 
Replies continue below

Recommended for you

sorry, I get the same values from the two statements...
I tried on a sub-assy as item(1) and for a part instance--still the same value...
I use V5R26

regards,
LWolf
 
Of course you did. You're supposed to. I'm talking about my parts, specifically.

The question was, "Can anyone help me figure out how to make them equal to one another"? In my parts. Not yours.

This is tied to a bug in Knowledgeware.

 
Code:
product1.Products.Item(1).DescriptionRef = product1.Products.Item(1).ReferenceProduct.DescriptionRef



Eric N.
indocti discant et ament meminisse periti
 
I don't know the history on the other thread but is any knowledgeware(Formulas, Reactions, Rules, DesignTables, etc) tied to this Field in the Part or through a Contextual reference from some other assembly? The external linking would likely be visualized in the Edit > Links menu.
 
These parts have a product level mismatch, due to using Copy -> Paste Special -> Breaklink. It ONLY affects Knowledge parts. Normally, we wouldn't even see the problem, but this parameter is being passed to a BOM population application.

 
I wish it worked like that Eric, but we can't seem to manually change the product level description ref to the part. Both instances of the DescriptionRef are correct, at the part level. (but not product)

 
In the destination assembly, does the 'Define Contextual Links...' dialog box have anything odd in it? (Right-Click > Components > Define Contextual links...)

--Doug
 
I actually don't have any contextual links in most assemblies... So no.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top