Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

catscript errors

catia_user

Computer
Jan 20, 2025
1
Hi
I am attempting to read the nodes and subnodes of a .catproduct , i can read the nodes with catscript code and also check the the type with "TypeName"
But even through the top node is .catproduct and subnodes some are asm and some are .catpart , when i check the typename everything is returining "Product" as type ?
 
Replies continue below

Recommended for you

Yes, there is only "Product" type for Product in CATIA Automation objects.
 
Last edited:
Hello @catia_user,

what method are you using to perform this extract? Are you writing to an excel file or writing to a text file?

Although I have limited knowledge with respect to CATIA but I'll advice you use "myDocument.FullName" to get the full path of the referenced file afterwhich you can post process by stripping to get the actual file type.

I don't know if there is a better approach that the above is what I've used so far.
 
You really need to post your code. Are you checking the instance? Because that IS a product. Or are you selecting the .catpart (it has only one cog-wheel as icon), one level below the instance.
 

Part and Inventory Search

Sponsor