DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Looking for help in exporting to DXF file using BasiCad

Started by PeeF, August 27, 2007, 07:31:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PeeF

I've used DesignCad for almost 25 years and never fail to be amazed at the usefulness of such an inexpensive product.  I still use AutoCad for compatibility with the rest of the industry, but when I really need to get stuff done quickly I use DesignCad.  I have written quite a few Basic macros that draw patterns that are exported to one of our machines. Needless to say, the machine imports a DXF file and goes to work without a problem.  My problem is that I have to export the DXF as a version 2000, with the line entities as 2 point lines.  Works great but I have to manually make sure that these parameters are set every time I give it a file name on export.  I would like to be able to do this through BasiCad at which time I would just ask the user for the file name.  I see where I can use a Basic command to export it as a DXF but I am wondering if there is any way to also set the other parameters.  Another alternative would be to have the program automatically set these parameters at startup and then I would just request the user to enter the export file name.  Any ideas?   By the way, I have found that DesignCad Express is a steal and I bought 10 copies; one for each machine that will be using my macros.....total cost $250 ! 

prl

Up to version 17.2, you can do something like this

.
.
.

Input "enter name of file to be exported", d$


' Exports the file to DWG
       >DwgOut
       '>DxfOut
    {
         <Filename [d$]
'         <type 0  '2004, 2005, 2006         
'         <type 4  '12
'         <type 5  '13
'          <type 6  '14
         <type 7 '2000
         <2PointLine 1
    }

.
.
.

end


In version 18, some of the basiccad parameters aren't working.  When I tried the type 7, it still used the type 0 (AutoCAD 2004,5, 6) regardless.  There are probably some new opendwg parameters they have failed to coordinate with older exports.

PeeF

Works like a charm!  Thanks for the speedy help......