# PTYPE in AutoCAD

> How AutoCAD's PTYPE (DDPTYPE) works: the Point Style dialog, its twenty figures, the point size, PDMODE and PDSIZE, and why points look invisible. Try it free.

PTYPE opens the Point Style dialog, which sets how every point object of the drawing is drawn: the ones `POINT` draws, and the ones [`DIVIDE`](https://mellowcad.com/docs/commands/divide.md) and [`MEASURE`](https://mellowcad.com/docs/commands/measure.md) leave. `DDPTYPE` is its alias, as in AutoCAD. The style belongs to the drawing, not to a point: change it and all of them change at once, and it is saved with the drawing. The button sits beside ID Point among the Utilities tools; typed with an apostrophe, `'PTYPE`, it opens inside a running command.

The dialog shows twenty figures in four rows of five, the current one chosen: a dot, nothing, a plus, a cross and a short tick, then each of them inside a circle, inside a square, and inside both. Under them, Point Size, and how it is read: Set Size Relative to Screen, a percentage of the view's height, or Set Size in Absolute Units, drawing units. The default is 5 % relative to the screen. OK writes the choice as one step that `U` takes back; Cancel or Escape changes nothing. A size that is not a number, or below 0, is refused (Invalid input.) and the dialog stays open.

What the dialog writes are two variables, which can also be typed at the command line: PDMODE, the figure (0 to 4, plus 32 for the circle, 64 for the square, 96 for both: 35 is a cross in a circle), and PDSIZE, the size (a positive number is drawing units, a negative one a percentage of the screen, 0 is 5 %).

- **Command:** `PTYPE`
- **Aliases:** `DDPTYPE`
- **Panel:** [Inquiry & view](https://mellowcad.com/docs/commands.md#inquiry)
- **Try it:** [Open the editor](/draw), type `PTYPE` and press Enter.

## At the command line

The engine draws it and writes its history as you would type it: the prompts in AutoCAD 2027's order, with the same option letters.

PTYPE opens the Point Style dialog; its OK writes PDMODE and PDSIZE, typed here as 35 and 8, then three points drawn inside a plate.

```text
Command: PTYPE
Command: PDMODE
Enter new value for PDMODE <0>: 35
Regenerating model.
Command: PDSIZE
Enter new value for PDSIZE <0.00>: 8
Regenerating model.
Command: POINT
Current point modes:  PDMODE=35  PDSIZE=8.00
Specify a point: 25,30
Command: POINT
Current point modes:  PDMODE=35  PDSIZE=8.00
Specify a point: 50,30
Command: POINT
Current point modes:  PDMODE=35  PDSIZE=8.00
Specify a point: 75,30
```

## What it does not do yet

The dialog's Help button. A point sized relative to the screen keeps that size on the screen as you zoom, where AutoCAD keeps it only until the drawing is next regenerated.

[What it does and still lacks, in detail (in English)](https://github.com/ovelilla/mellowcad/blob/main/docs/coverage/draw.md#ptype--ddptype-pdmode-pdsize--es-tipopunto--ddptype--pt-br-tipop--tip--ddptype--tipopd--fr-typept--ddptype--it-tipop--ddptype--de-ptyp--ru-типточки--диалтточ--pl-ptype--cs-btyp--hu-ptípus--dpptípus)

## Questions

### What is DDPTYPE in AutoCAD?

The alias of PTYPE: both open the Point Style dialog, in every language of AutoCAD.

### Why are my points not visible?

The default point style is a dot one pixel wide, which a line drawn through it hides, and PDMODE 1 draws nothing at all. Open PTYPE and choose a cross or a circled figure, or type PDMODE and `3`. With a size relative to the screen they stay visible at any zoom.

### How do I change the size of points?

In PTYPE, type the Point Size: a percentage of the screen with Set Size Relative to Screen, so a point keeps its size as you zoom, or drawing units with Set Size in Absolute Units, so it grows and shrinks with the drawing. Or type PDSIZE: a negative value is the percentage.

### Can I give one point its own style?

No: in AutoCAD and here, the point style is the drawing's, and every point object follows it. To mark places differently, insert a block at them; [`DIVIDE`](https://mellowcad.com/docs/commands/divide.md) and [`MEASURE`](https://mellowcad.com/docs/commands/measure.md) can place a block instead of points.

## Related commands

- [POINT](https://mellowcad.com/docs/commands.md#point): Multiple Points
- [DIVIDE in AutoCAD](https://mellowcad.com/docs/commands/divide.md)
- [MEASURE in AutoCAD](https://mellowcad.com/docs/commands/measure.md)
- [-OSNAP in AutoCAD](https://mellowcad.com/docs/commands/-osnap.md)
