×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Parameter mismatch in Product vs Part

## Parameter mismatch in Product vs Part

(OP)
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.

### RE: Parameter mismatch in Product vs Part

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

### RE: Parameter mismatch in Product vs Part

(OP)
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.

### RE: Parameter mismatch in Product vs Part

#### CODE --> WillThatWork?

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

Eric N.
indocti discant et ament meminisse periti

### RE: Parameter mismatch in Product vs Part

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.

### RE: Parameter mismatch in Product vs Part

(OP)
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.

### RE: Parameter mismatch in Product vs Part

(OP)
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)

### RE: Parameter mismatch in Product vs Part

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

--Doug

### RE: Parameter mismatch in Product vs Part

(OP)
I actually don't have any contextual links in most assemblies... So no.

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!