 |
|
 |
Hi Omid,
Congratulations for your article. Splendid.
I'm using as a basis for use in a program that needs to connect to autocad, and needed to know what the fihcero header.h the dll.
Thank you for your contribution.
|
|
|
|
 |
|
|
 |
|
 |
I just want to say this is a great article! It is just what my little robotics project needed. What I would really love to know is how to draw all this in 3D. If you know of a similar program, one that draws in 3D, then please tell me. Otherwise I guess I will have to write one.
- Dave
|
|
|
|
 |
|
 |
Hi Omid Shahabi
Nice work by the way only one major disadvantage! you've used ooold programming languge -VC++6 I believe- yes many still using it others may still use older I myself used it before but much more moved to to .NET or newer version of VC++ -MS VS 2010 hit the market-
Note it's >=90% IMpossible to use old code with modern compilers.
Also the compiled dll itself can't be refrenced in other applications
I'm a civil engineer too and I'm working on a program that draws CAD structural plans and shop drawings with servy option.
I did one before back in 2005 for irrigation and drainage works in VB6 automating Autocad 2006 which was the last version that fully supports ActiveX/COM Automation.
Now I'm using Autocad 2011 and MS VS 2008 and I can go nowhere with automation so I began to consider another approch like what you did.
Googling around I was surprised to see your open source I can say it is the only dxf open source library desides QCAD -which written in the ooooolder unix friendly C++-
Soory for the flood, and thanks for what u share with others.Yours,
Usama Taha
|
|
|
|
 |
|
 |
In very good, thank you.
His word that you can find the source files from *. dll?
M. BOZA
civil engineer
|
|
|
|
 |
|
 |
How do I get a picture control in the graphics area of computing !
Please advice!
Thank you very much!
|
|
|
|
 |
|
 |
Hi there..
Since I am new in the DXF Writing industry, can anyone perhaps forward me a copy of a dxf writer in c#?
I would really appreciate any help.
Thanks.
|
|
|
|
 |
|
|
 |
|
 |
hi
I want to convert a dxf file to g-code.do you have any idea?
please help me
**********
salam
rahi hast ke betunam file dxf ru be file g-code tabdil konam albate be zabane c#.mamnun misham komakam konid.
fa_eslampanah@yahoo.com
|
|
|
|
 |
|
 |
Hi,
It seems a very good code .
However, I have found that ellipse code was commented out.
Is it any reason for that?
Is ellipse DXF codes – correct?
Igor.
igrossma
|
|
|
|
 |
|
 |
We would like to use this project into our commercial product. Please let me know the copyright and license conditions of using it.
Thank you,
|
|
|
|
 |
|
 |
Is there a C# or VB.net port of the CadLib?. If not how difficult would it be to do a port even C# should be ok if not VB.
Thanks yall.
Murgan
|
|
|
|
 |
|
 |
i have a question
if dxf file displayed ,
how to resert text color
thanks
|
|
|
|
 |
|
 |
I want to get the coordinates of the lines in the DXF.
How can I search for a line?
|
|
|
|
 |
|
 |
Could someone please post how to work with the cadlib.
it asks for hdrawing and i can't convert intptr to hdrawing.
|
|
|
|
 |
|
 |
Hi, when im using load and save option the dxf file get altered it simply adding one circle to the drawing..
any help to solve this bug.
Thanks
Shiju
|
|
|
|
 |
|
 |
can anyone send me a c# version of this project or dll
inbarbarkai@walla.co.il
thanks in advance
|
|
|
|
 |
|
 |
Hi,
If you get version for C# please send me too,
sceleton@japan.com
thenks,
|
|
|
|
 |
|
|
 |
|
 |
Hi Omid Shahabi:
Thanks for your article and source code first. I've got a question here: Any data type of coordinate we read from DXF file is (double,double), but if we want draw all the entities to our own application on screen, all the coordinates should be convert to (int,int). thers is the question, how should we convert them?
I'ven read the source code, and get the the convert information from four macros, but just can not fully understand them, Especilly the concept of Units and PPU. Could you give me more information about how to convert them? Hope for your reply, Thanks. Here are defination of your four macros:
#define U2PX(units) pDrawing->View.WindowLeft + (int)((-pDrawing->View.ViewLeft + x+(units)*xScale) * pDrawing->View.PPU * pDrawing->View.ZoomLevel)
#define U2PY(units) pDrawing->View.WindowBottom - (int)((-pDrawing->View.ViewBottom + y+(units)*yScale) * pDrawing->View.PPU * pDrawing->View.ZoomLevel)
#define U2PXROT(xUnits,yUnits) pDrawing->View.WindowLeft + (int)((-pDrawing->View.ViewLeft + x+(xUnits*xScale*cos(Rotation*PI/180)-yUnits*yScale*sin(Rotation*PI/180))*1) * pDrawing->View.PPU pDrawing->View.ZoomLevel)
#define U2PYROT(xUnits,yUnits) pDrawing->View.WindowBottom - (int)((-pDrawing->View.ViewBottom + y+(xUnits*xScale*sin(Rotation*PI/180)+yUnits*yScale*cos(Rotation*PI/180))*1) * pDrawing->View.PPU pDrawing->View.ZoomLevel)
|
|
|
|
 |
|
 |
Hi!
Is there a way to get info about the entities like circle,polyline etc?
I need to know the coordinates of the polylines for instance.
How does CDrawing.Findentity work?
THX
|
|
|
|
 |
|
 |
I was trying to use this library but without including the whole bunch of files(not like in the test project) but with the single dll.I had several problems...
What you really need is>
You need to copy to your own directory only 6 files:
cadlib.cpp,cadlib.h, Drawingdef.h, DXFdef.h
from the Release library: the CadIO.lib , CadIO.dll.(If you dont have this build the CadIO.sln first)
Include cadlib.h , add to project these source and header files, in project settings->additional dependencies: cadio.lib
In VC++2005 It will throw 3 errors for cadlib.cpp:
error-> CDxfFileWrite::WriteParameter( int GroupCode, LPCTSTR Value )
{
ISLIBRARYLOADED();
return dxfWriteParamString( m_hDxf, GroupCode, Value );
} because there is a BOOL missing :
the correct form
BOOL CDxfFileWrite::WriteParameter( int GroupCode, LPCTSTR Value )
{...
...
After this it will work...
|
|
|
|
 |
|
 |
>>> the CadIO.lib , CadIO.dll.(If you dont have this build the CadIO.sln first)
Problem is VS2008 users will not be able to do so -build the CadIO.sln- and I couldn't find a walkaround yet may be you can help or post the shared dll file
modified on Thursday, December 30, 2010 5:52 PM
|
|
|
|
 |
|
 |
I dont want to include this bunch of library files like in test.cpp, I need only the dll so>
I have no clue how to use that CadIO.dll, what am I doing wrong?
1)
I compiled,built the library
2)
I copied only the CadIo.dll ,CadIO.lib, Cadlib.h , Drawingdef.h, DxfDef.h to my own directory.
3) Added the directories to my project + CADIO.lib to library
4) Included Cadlib.h
5) After I declare CDrawing class, the linker throws a nice >
error LNK2001: unresolved external symbol "public: __thiscall CDrawing::CDrawing(void)" (??0CDrawing@@QAE@XZ)
Why that?
There must be missing something...
|
|
|
|
 |
|
 |
This was really helpfull!
Greetings.
|
|
|
|
 |