Reading material from catalog header

Product design in 3D, mechanical engineering, kinematics, dynamics, parts and components, surfacic, assemblies...

Moderators: remi77, Daniel, jacs

Post Reply
User avatar
DamianCz
Private First Class
Private First Class
Posts: 10
Joined: Wed May 02, 2018 1:16 pm
TopSolid Module: TopSolid'Wood
TopSolid Version: 6.17

Reading material from catalog header

Post by DamianCz » Thu May 03, 2018 11:37 am

Hi Gents,

I need to read material from catalogue code i got 3 part component and the reason i need this is that 1 of the component does pocket operation on the other so replacing it with new file is not an option as the operation is gone (i tried it already).

1st sub component (driver block)
- shape
- 2nd sub component (driver block)
- pocket operation
3rd sub component (driver block)

main file (driver block)
- 1&2&3 sub components put together
- publishing defined
- component parameters joined between them

I believe i should use "$material" but i don't know how to put material destination in there. Any suggestions how to do that?

Regards
Last edited by DamianCz on Fri Jun 01, 2018 1:18 pm, edited 1 time in total.

User avatar
DamianCz
Private First Class
Private First Class
Posts: 10
Joined: Wed May 02, 2018 1:16 pm
TopSolid Module: TopSolid'Wood
TopSolid Version: 6.17

Re: Reading material from catalog header

Post by DamianCz » Thu May 31, 2018 5:52 pm

Hi!

I did manage to find the solution but now i came to another problem. In file top.mat i can't find materials i've created so how do i read them using catalog header?

This is my example of how i change the material using catalog header.

X - is the part name
Attachments
material.png
Last edited by DamianCz on Fri Jun 01, 2018 1:19 pm, edited 1 time in total.

User avatar
DamianCz
Private First Class
Private First Class
Posts: 10
Joined: Wed May 02, 2018 1:16 pm
TopSolid Module: TopSolid'Wood
TopSolid Version: 6.17

Re: Reading material from catalog header

Post by DamianCz » Fri Jun 01, 2018 1:17 pm

Ok Guys,

I did MANAGE to do this! For those who struggle with same thing:

If you want to change your custom materials using catalog headers you have to go to file topmaterials.xml and take the name and put in to .cat file as per the below example. Where "X" is the part name.

Simple as that and it works :!: :o :)

@ UPDATED

The key point for this to work is that you set name for the part you want to change the material. Image attached
Attachments
topsolid.png
material.png

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests