Over 1.094.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
cdsdonham ![]() Newbie ![]() Joined: 02.Sep.2007 Status: Offline Points: 1 |
![]() Posted: 02.Sep.2007 at 19:25 |
Hi all --
I'm writing my own program to generate a DXF file for a very specific need. I can get the geometry into the DXF file, but when I load the file into autocad's design review, I'm having trouble with the scale or units on the drawing. Can anyone point me at either documentation and/or an example of how to specify in the DXF file what the units or scale of the drawing is? Generating the polylines was easy (with the help of a library). There appears to be a bunch of header variables and I can't seem to get the right combination of $VARIABLES to get the scale set correctly. Also, I'm using a random cad library I found on the web which appears to be a bit dated. I need a C++ API under windows for generating the DXF file. Does anyone have any good suggestions about what to use? I tried autocad's free library, but it appears to generate DWF files not DXF or DWG which is what the CMC tool apparently needs. Thanks. Chris |
|
![]() |
|
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2111 |
![]() |
You normally don't need any scale for modelspace DWG or DXF files. The drawing just uses "units" (unitless) and scale is used just for plotting, dimensioning and paperspace (layouts).
Probably your CNC tool scales the imported DXF files for some reason. If so, you can generate all the coordinates scaled down or up.
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,215 seconds.