progeCAD support, tips and troubleshooting forum. progeCAD works very similar to some versions of AutoCAD. Moderated.

Moderators: caddit, Moderators

#1660 by tammons
Fri Oct 14, 2011 3:54 am
Trying to create a new style within a lisp program, and its not working.

The -style command structure does not allow a name for the new style to be entered. You can only do this through a dialog box from what I can see.

Is there something I am missing or is there a fix or work around for this
to create a group of styles from within a lisp program ??

#1667 by caddit
Mon Oct 17, 2011 11:04 am
Welcome tammons,

I am not sure that I understand the problem correctly. -style command works as expected in our case:

Code: Select allCommand : -style
? to list existing styles/<Text style to create or modify> <Standard>: MyStyle
Font: block
font: block.shx bigfont:  are selected.
Text height <0>: 1
Width factor <1.0000>:
Obliquing angle <0>:
Draw text backwards? <No>
Draw text upside-down? <No>
Command : style

(Review of CAD Text Styles available reveals that the new MyStyle was created a specified)


We are also reviewing your AutoLISP question and will revert back shortly.

#1672 by tammons
Mon Oct 17, 2011 12:55 pm
It works, sort of, but you can not assign a different style name.

Say you want to create a style with the name of "1" with Simplex.shx.

On my version I can create a style and load say font like simplex, but it will not let me assign a custom name to it. Even then it does not show up in the layer list like the command is unfinished.

If you then open up the style dialog box it shows the font like it is half way through creating.

Going from memory so not sure if above is understandable.

Try it and you will see what I mean.