TsgDXFAttdef and TsgDXFAttrib
Posted: 08 Jan 2007, 12:34
First thanks, we receive the update of the compoment.
I try to add dxfattdef and attrib in a insert.
But i found nowhere a sample !
can you say how to do ?
Thanks
ps : ok i found, but with this:
vAttrib := TsgDXFAttrib.Create;
vAttrib.Point := MakeFPoint(10, 10, 0);
vAttrib.Tag := 'Affectation';// = vAttdef.Tag
vAttrib.Text := t1;
vAttrib.Height := 20;
vAttrib.Visible:=false;
if Assigned(Img_Travail.Converter.OnCreate) then Img_Travail.Converter.OnCreate(vAttrib);
Img_Travail.Converter.Loads(vAttrib);
vInsert.Attribs.Add(vAttrib);
the attrib is show in the draw!
I try to add dxfattdef and attrib in a insert.
But i found nowhere a sample !
can you say how to do ?
Thanks
ps : ok i found, but with this:
vAttrib := TsgDXFAttrib.Create;
vAttrib.Point := MakeFPoint(10, 10, 0);
vAttrib.Tag := 'Affectation';// = vAttdef.Tag
vAttrib.Text := t1;
vAttrib.Height := 20;
vAttrib.Visible:=false;
if Assigned(Img_Travail.Converter.OnCreate) then Img_Travail.Converter.OnCreate(vAttrib);
Img_Travail.Converter.Loads(vAttrib);
vInsert.Attribs.Add(vAttrib);
the attrib is show in the draw!