Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

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

catscript errors

Status
Not open for further replies.

catia_user

Computer
Joined
Jan 20, 2025
Messages
3
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 ?
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top