Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Catia/Smartteam

Status
Not open for further replies.

Smileyoer

Mechanical
Dec 31, 2018
16
Hello everyone,

I have faced with a issue that I still can not find a result for.

When I wrote a macro I can Tell the macro that I would like to modify a part which is user selected.
The selected part name is stored ín a strint than with that Line:
Catia.Documents.item(strint that stored name)
And then I can modify part.

The main problem is that when I open a part or product from SmartTeam it makes a file to my local with a number of ID.

When I ask user to select part to modify its nőt working anymore because the part name is stored in a string but the
Catia.Documents.item(strint that stored name)
Now throws an error.

Do you know how can I get this SmartTeam ID to Tell Catia that I will modify this part or product?

Thank you ín advance!
 
Replies continue below

Recommended for you

Get ID from CATIA.Windows.item().name

Thanks
Sri
 
But I dont know its number ín a product, so I can not reference it.

I would like to select a part with user selection.
 
How you are getting the string?
Is it selection.item().name?
 
Yes I gót it like this. But the main problem is that when I try to show the code that I would like to modify this part IT throws an error.

I open a part properties which opened from SmartTeam and its name is like a SmartTeam ID because its made a local representation on my computer.

Any idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor