Problems in CAD Editor demo
Posted: 05 Dec 2006, 14:49
I downloaded the Editor demo example application and have a few questions
I make dwg-file in AutoCad 2005 which consists of 3 lines (not polylines and it doesn’t matter how many lines) and then I open thi file in Editor. I’ve added two lines in your unit sgSManager that is placed between “//****â€:
As I understand program must set line weight equal 200 to selected entity, but in fact it makes line weight to last created in Auto CAD line (and it’s doesn’t matter which line I choose). But DrawMarker correctly makes small rectangles in chosen line points!
Then if I make zoom of image selected line becomes thick and other lines become the same thickness that they had in Auto CAD.
There is no such a problem if dwg-file comprises any other entities except lines.
Can you help me to solve this problem?
And it’s not only problem that I found in this program that I need your help to solve it.
If I call SetLWeight of any Entity after that Marker becomes the same thickness as I’ve just set to Entity (it’s not important but I hope useful for you to know)
How can I get weight of entity line (there is no GetLWeight)?
When I work in mmSelect mode I can select rectangle only if I hit top or right side of this rectangle. And what about bottom and left sides?
I want to turn on the Snap Made (like in your CADImporterVCL Viewer demo). Is it possible to make in Editor? It looks like there is not enough methods in Editor for it.
I make dwg-file in AutoCad 2005 which consists of 3 lines (not polylines and it doesn’t matter how many lines) and then I open thi file in Editor. I’ve added two lines in your unit sgSManager that is placed between “//****â€:
Code: Select all
…
<b>if</b> FSelectedObject <> <b>nil then
begin</b>
Pos := InList(FSelectedObject);
<b>if</b> Pos < 0 <b>then
begin</b>
FEntities.Add(FSelectedObject);
//****
TsgDXFEntity(FSelectedObject).SetLWeight(200);
TsgDXFEntity(FSelectedObject).Draw;
//****
<b>end</b>
…
Then if I make zoom of image selected line becomes thick and other lines become the same thickness that they had in Auto CAD.
There is no such a problem if dwg-file comprises any other entities except lines.
Can you help me to solve this problem?
And it’s not only problem that I found in this program that I need your help to solve it.
If I call SetLWeight of any Entity after that Marker becomes the same thickness as I’ve just set to Entity (it’s not important but I hope useful for you to know)
How can I get weight of entity line (there is no GetLWeight)?
When I work in mmSelect mode I can select rectangle only if I hit top or right side of this rectangle. And what about bottom and left sides?
I want to turn on the Snap Made (like in your CADImporterVCL Viewer demo). Is it possible to make in Editor? It looks like there is not enough methods in Editor for it.