omar wrote:
....When you do that, the materials should follow.
Not unless you DEFINE the material in the object script or create a Master_GDL object with the materaila defined in that.
The materials in a file are controlled by the attributes and your material list will more than like be different to my materials or other peoples materials unless we all use the same default template.
A material you call "Stainless steel" may have an attribute number of 23 in your PLN file.
But in mine attribute 23 might be "Plastic".
So you either need to DEFINE the materials in a script (object script or Master_GDL script - effectively hard coding them into the object) or supply an attribute file (.AAT) of your materials that other users can load in.
Attribute files can be dangerous though as users can inadvertantly replace some or all of their existing materials with your new ones if the attribute numbers are the same for different materials.
They will need to APPEND your materials to theirs, but then I am not sure if your objects will automaticall reference your new materail by name or whether it will use the attribute number which will be the users own material and not your new one.
That would have to be tested unless someone knows the answer straight away.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11