Page 1 of 1

Reading material from catalog header

Posted: Thu May 03, 2018 11:37 am
by DamianCz
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?


Re: Reading material from catalog header

Posted: Thu May 31, 2018 5:52 pm
by DamianCz

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

Re: Reading material from catalog header

Posted: Fri Jun 01, 2018 1:17 pm
by DamianCz
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 :)


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