Adding entities

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Jourde
Posts: 33
Joined: 10 Sep 2004, 10:33
Location: France
Contact:

Adding entities

Post by Jourde » 21 Oct 2004, 13:13

Hi

we are (again) testing your product ! (and i think that we will soon buy a licence : very speed product and easy to use ;)).

But another question before please :

Can we add entities to a DxfImage ? like layers or drawing ? and how ?

We want be able save own dwg and dwf documents then we need write in with differents layers!

Thanx

E.Jourde

Evgeny
Posts: 115
Joined: 16 Mar 2004, 11:04
Location: Russia

Post by Evgeny » 21 Oct 2004, 16:05

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by Jourde</i>
<br />Hi
Can we add entities to a DxfImage ? like layers or drawing ? and how ?
E.Jourde
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
Hi,
Thank you for kind words.
1. You can add entities to TsgDXFImage.Converter. "Add new entities" demo.
2. To add new layer use
var
Img: TsgDXFImage;
Layer: TsgDXFLayer;
begin
Layer := Img.Converter.LayerByName('NewLayer');
... // here you can work with new layer
end;

3. If you need to add another drawing, i.e. combine two or more drawings together please see "TextChange+Color2LineWeight" demo. "Add scaled files" button (the second) on the toolbar makes this functionality.
Evgeny

Post Reply