|
|
Mike Williams <nos### [at] econymdemoncouk> wrote:
> It looks like you've declared color_sub to be a text string rather than
> a pigment identifier.
>
> E.g. you can't to this is you want to use color_sub as a pigment
> identifier
>
> #declare color_sub = "rgb <1,0,0>";
>
> but you can do this instead
>
> #declare color_sub = pigment {rgb <1,0,0>};
>
Ok I ran this below code, but still got the same error:
#declare color_sub = pigment {rgb <1,0,0>};
#macro DIODE_SMD_CHIP_0805(color_sub)
union{
object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}
}
#end
and if I run this:
#macro DIODE_SMD_CHIP_0805(1)
union{
object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}
}
#end
I get this error:
"Parse Error: Expected 'identifier or expression.', float function 'float
constant' found instead
ideas?
Post a reply to this message
|
|