Hello All CATIA Users,
I'm trying to make an attribute macro in Catia V5. As seen in the video, I can show the mass and material attributes in the BOM table. But I couldn't find a way to read the surface and some inertia values to the attributes. Does anyone know the code for these attributes I can't read?
In my macro code, I read the mass like this.
Err.Clear
On Error Resume Next
Set dimension1 = parameters1.Item("Mass")
errNumber = CLng(Err.Number)
if errNumber <> 0 then
Set dimension1 = parameters1.CreateDimension("Mass", "MASS", 0.000000)
dimension1.ValuateFromString Cstr(1000000*product1.analyze.mass)&"mg"
else
dimension1.ValuateFromString Cstr(1000000*product1.analyze.mass)&"mg"
end if
Cstr(1000000*product1.analyze.mass)&"mg" This value reads the mass value under mechanical when I define an attribute. How can I read density, surface and some inertia values just like this code?