PDA

View Full Version : Creating a macro for specific linetypes



Gratitude1977
26th Nov 2010, 04:27 pm
Hi all,

Is it possible to have a macro for drawing a specific linetype?

Thanks

ReMark
26th Nov 2010, 07:32 pm
Yes it is. Just make sure the linetype is either part of your template file or is loaded prior to using the macro.

BIGAL
30th Nov 2010, 09:51 am
I think I have read 8 posts tonight about how to do this or some thing close sorry !

Please people out there have a go at search first I find stuff from way back that answers my questions some times.

ReMark
30th Nov 2010, 11:41 am
I think I have read 8 posts tonight about how to do this or some thing close sorry !

Please people out there have a go at search first I find stuff from way back that answers my questions some times.

That would be too easy. It would also require a person to be able to come up with good search criteria to narrow down their choices.

ReMark
30th Nov 2010, 12:38 pm
Here's one option directly from AutoDesk.

Load linetype via macro without using dialog box for selection of LIN file

Issue

You would like to create a custom command that loads a specific linetype automatically, without any dialog box appearing.


Solution

To load a specific linetype without using a dialog box, use the following syntax in your macro:

^C^C_filedia;0;_-linetype;L;<linetype name>;"<path>/<lin file>";;filedia;1;

For example:

^C^C_filedia;0;_-linetype;L;ACAD_ISO02W100;"C:/Documents and Settings/<user name>/Application Data/Autodesk/AutoCAD 2009/R17.2/enu/Support/acadiso.lin";;filedia;1;