How to join two files?
Moderators: SDS, support, admin
-
- Posts: 26
- Joined: 23 Feb 2009, 12:30
Re: How to join two files?
But I dont know which cad editor they use but I make program for this file format.
Just I need to find points from these files.
Now I think that they can put colored points for finding.
For Example Can Ifind blue, green ext. points from file?
Just I need to find points from these files.
Now I think that they can put colored points for finding.
For Example Can Ifind blue, green ext. points from file?
Re: How to join two files?
CAD Import VCL allows finding points in a drawing. But it works in the only case - these points should exist. You sent us some CGM (this is not AutoCAD file format) files which does not contain any point.
Sergey.
Yes, you can. But file should contain these points at first.For Example Can I find blue, green ext. points from file?
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 26
- Joined: 23 Feb 2009, 12:30
Re: How to join two files?
Yes, I know.
I will say them to put these points.
Can you send me example to find that colored points?
I will say them to put these points.
Can you send me example to find that colored points?
Re: How to join two files?
Here it is:
Sergey.
Code: Select all
procedure TForm1.btnFindPointByColorClick(Sender: TObject);
var
I: Integer;
vPoint: TsgDXFPoint;
begin
for I := 0 to TsgCADImage.Converter.Counts[csEntities] - 1 do
begin
if TsgCADImage.Converter.Sections[csEntities].Entities[I] is TsgDXFPoint then
begin
vPoint := TsgDXFPoint(TsgCADImage.Converter.Sections[csEntities].Entities[I]);
if vPoint.Color = clRed then
ShowMessage('Red point exists.');
end;
end;
end;
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 26
- Joined: 23 Feb 2009, 12:30
Re: How to join two files?
They send me new colored file.
I try your code but can not find point.
When I zoom cgm file by Cad Import Vcl, it looks like something wrong.
They use Catia.
I send you cgm file and zooming pic. with email.
I try your code but can not find point.
When I zoom cgm file by Cad Import Vcl, it looks like something wrong.
They use Catia.
I send you cgm file and zooming pic. with email.
Re: How to join two files?
We have received it. We will answer you soon.
Sergey.
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: How to join two files?
It is necessary to search TsgDXFArc objects with your file:
Sergey.
Code: Select all
procedure TForm1.btnGetCenterHatchClick(Sender: TObject);
var
I: Integer;
vArc: TsgDXFArc;
vEnt: TsgDXFEntity;
begin
for I := 0 to TsgCADImage.Converter.Counts[csEntities] - 1 do
begin
vEnt := TsgDXFEntity(TsgCADImage.Converter.Sections[csEntities].Entities[I]);
if vEnt is TsgDXFArc then
begin
vArc := TsgDXFArc(TsgCADImage.Converter.Sections[csEntities].Entities[I]);
if (vArc.Color = clBlue) or (vArc.Color = clGreen) then
ShowMessage('Cross point exists.'); //vArc.Point - this point contains required coordinates
end;
end;
end;
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support