AutoCAD × AICAD standards, kept by AI日本語DeutschFrançaisEspañolPortuguêsItaliano한국어GRAMSHIFT AI

AutoCAD × AI / CAD standards

How do I match a DXF from Jw_cad to our AutoCAD standard for layers, colors, linetypes and text?

In AutoCAD, use LAYTRANS to map the layers of a Jw_cad DXF to your standard layers. Use SETBYLAYER to set colors and linetypes to ByLayer. If you receive many DXF files, ask an AI that has Drawing Rule Fixer for AutoCAD installed. It uses rules built from a template drawing that follows your standard, and fixes the drawings in a folder in one pass.

Try it freeSee how to ask AI

An AutoCAD drawing before and after: 28 items that did not match the company CAD standard, then 0
A drawing with 28 items off the company standard, brought to 0 by asking AI

Checking is free

You get a plain list of everything that does not match your standard, with a count for each kind. No limit on how often you check.

One UNDO restores it

A fix to the open drawing is a single undo step. You decide whether to save the drawing.

Drawings stay on your PC

Drawing files are read on your own PC. This tool does not send them anywhere.

Where Jw_cad DXF files usually differ from your standard

Jw_cad stores color (line color) and linetype on each line. When you open the DXF in AutoCAD, these items often do not match your company standard:

In Jw_cad, line color often stands for print line thickness. If you reset colors to ByLayer, the thickness distinction that was made by color is lost. Decide how to handle line thickness before you fix anything. Check the drawing scale, units and text fonts by opening the drawing in AutoCAD.

Steps with standard AutoCAD tools

  1. Open the received DXF in AutoCAD.
  2. Enter LAYTRANS and load a drawing (.dwg, .dws or .dwt) that contains your standard layers.
  3. Select the DXF layers and the standard layers to map them to, then save the mapping to a .dws file and run the translation. For the next drawing, load the saved .dws to translate with the same mapping.
  4. Enter SETBYLAYER, choose color and linetype in the settings, then select the whole drawing. Answer the prompts about changing ByBlock to ByLayer and about including blocks. Color and linetype are then set to ByLayer.
  5. For text height and text style, select the text with QSELECT and change them in the Properties palette.
  6. Save as DWG and go on to the next DXF.

You repeat these steps for each file, so this takes time when you receive many DXF files.

Ask AI to do it in one step

Ask an AI client such as Claude Desktop that has Drawing Rule Fixer for AutoCAD installed. If the files include DWG, keep AutoCAD running.

First, open a drawing that contains your standard layers and create the rules:

"Create rules from this drawing"

Check one received DXF:

"Check whether C:\Drawings\ProjectA\1F-Plan.dxf matches our standard"

The result is a list of the items that do not match, with counts by type. Layers that are not in your standard are reported too, so this is also how you learn the layer names in the received drawing. Checking a DXF is free and does not need AutoCAD to be running.

If a layer name differs from the standard, add the mapping to the rules:

"Add to the rules: merge layer WALL into A-WALL"

Before you fix a whole folder, you can see what would be changed in each drawing and how many items:

"Before you fix anything, only show me what would be changed and how many"

If the result is what you expect, fix and save:

"Fix the drawings in C:\Drawings\ProjectA to our standard and save them in a folder named Fixed"

The fixes cover the items written in the rules: merging layers with different names, layer colors and linetypes, setting individual colors and linetypes to ByLayer, text height that is too small, and replacing text styles and dimension styles. You get a table for each drawing with the count before the fix, the count fixed and the count remaining.

How it protects your files

Checking and previewing one drawing at a time, and creating rules, are free. Fixing drawings, and features that handle a folder of drawings at once (including the preview), are subscription features.

FAQ

Do I need AutoCAD to check a DXF?

No. Checking a DXF file works without starting AutoCAD.

What happens to line thickness if I reset colors to ByLayer?

If the drawing used color to separate line thickness, that distinction is lost. Before you fix, ask "Before you fix anything, only show me what would be changed and how many". Check how many individual colors there are, and decide how to handle line thickness. Then fix.

What if each partner company uses different layer names?

Add the mapping from each layer name to your standard layer to the rules. Then the same rules fix drawings from different partner companies.

Can it fix objects on locked layers?

No. Objects on locked layers are not changed, and the layer names are reported. Unlock the layers and ask again, and those objects become targets.

Does it fix objects inside external references?

No. Objects inside external references (Xrefs) are not changed.

Asking the AI to fix everything in the open drawing: 28 issues become 0

The tool used in this article

Drawing Rule Fixer for AutoCAD

Give your AI your company drawing rules (layers, colors, linetypes, text height). It checks the drawing open in AutoCAD and fixes it in one go. Ask in plain English from an AI client such as Claude Desktop. No AI app? The included screen does the same checks and fixes.

  • Free: checking a drawing, listing layers and text, previewing a fix, creating a rules file
  • Subscription: fixing drawings, writing text back, and checking, fixing and translating a whole folder of drawings (DWG and DXF)

Try it free

Checking is free with no limit. Fixing is ¥1,980 a month, and you can cancel any time. Questions are welcome at contact@gramshift.com.

Related articles