How to Set Custom Attributes on Child Nodes in Hoops Exchange?

Hi everyone,

I’ve noticed that A3DRootBaseSet only applies custom attributes to the root node but not to the deepest child nodes. Are there any other approaches to set attributes on sub-nodes?

Any advice would be greatly appreciated. Thank you!

Hello @18234083588,
The root Product Occurrence and child Product Occurrence use the same way to set custom attributes.
You can refer to the function A3DVoid stSetAttributes(A3DEntity* p) in the sample CreatePRCBrepWithGeometry.
Please let me know if you need further assistance. Thank you.

Best Regards,
Man

Appreciate your help! How can I add attributes to the body level specifically (referring to the red boxed section in the image)? Would appreciate your advice.

Hello @18234083588
I believe the node you mentioned is RiBrep. You just need to traverse to the node you need (e.g. child Product Occurrence, RiBrep) and then call the same code.

Best Regards,
Man

I tried the method you suggested, and it worked! Thanks a lot for your help!