Hatch with Delphi

Hatch with Delphi

Anonymous
Not applicable
215 Views
1 Reply
Message 1 of 2

Hatch with Delphi

Anonymous
Not applicable
Hello Everybody

Does anyone have any example showing how to use the appendouterloop in hatch objects using delphi. My problem is the array of objects.

Thank you for any help

Danilo Santos
0 Likes
216 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Here it is:

 

procedure CreateFilledLWPoly(Obj:
OleVariant);
Var
  HatchObj : AcadHatch;
  OuterLoop :
OleVariant;
begin
    OuterLoop := VarArrayCreate([0,0],
VarDispatch);
    if Obj.Closed
then
     
begin
        HatchObj :=
AcadApp.ActiveDocument.ModelSpace.AddHatch(0,'SOLID',True);
       
OuterLoop[0] := IDispatch(Obj);
       
Try
         
hatchObj.AppendOuterLoop(OuterLoop);
         
HatchObj.Color :=
Obj.Color;
         
HatchObj.Elevation :=
Obj.Elevation;
       
except
         
Hatchobj.Delete;
       
end;
      end;
   
end;
end;

 

Luc Morrissette,

Flairbase inc.
0 Likes