Tutorial for writing macros, editing CUI?

Anonymous

Tutorial for writing macros, editing CUI?

Anonymous
Not applicable

Does anyone have a tutorial or resource for how I can learn how to write / incorporate macros (and possibly some lisps) into the CUI for Autocad LT for Mac? It seems like there is a lot of potential for this, but I am a total newbie and need somewhere to start.

0 Likes
Reply
Accepted solutions (1)
1,691 Views
10 Replies
Replies (10)

maxim_k
Consultant
Consultant
Accepted solution

HI,

 

Here is a link to "AutoCAD for Mac 2011 User Interface Customization Tutorial" (could be applied to LT)

http://www.youtube.com/watch?v=G8OlU1g3mY0

 

I also attached interesting AU Handout ("Introduction to Macro Writing" by Kate Morrical)

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

maxim_k
Consultant
Consultant
HI,
Just want to add that AutoLISP is not available in LT version, you can try to use DIESEL macros, but on Mac platform there are some limitations, for example:
- you can not use MODEMACRO system variable to modify Status line, as there is no Status line in Mac version of AC - it is a feature

- you can not use USERS1...5 variables to store strings (although you can use USERI1...5 ans USERR1...5 to store integers and reals - it is a feature

- you can not disable menu items in pull-down menus with ~ in DIESEL macros - this is a bug, because for pop-up menus this works (but ordinary user can not customize pop-up menus via CUI command, it is possible only by direct editing of CUI files).

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

Anonymous
Not applicable

Thanks Maxim! I passed along the instructions to a coworker and she is figuring it out.

0 Likes

Anonymous
Not applicable

Maxim,

 

     As far as lisp apps or macros go, if I am going to learn one or the other, does one have limitations that prevent functionality? Which should I learn? I've coded lisp many years ago.

 

John

0 Likes

maxim_k
Consultant
Consultant

@Anonymous wrote:

Maxim,

 

     Which should I learn? ...

 

John


Hi John,

 

It all depends on your needs.

AutoLISP is a programming language and therefore you can build  "intelligence" into it.

Macros has no "intelligence" and is just a list of commands in the same order that you would type them to the AutoCAD command prompt.

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

moneumiko
Advocate
Advocate

Hi, 10 years later of what you wrote here - does the current version of AutoCAD LT for Mac support users1-5 variables?

0 Likes

maxim_k
Consultant
Consultant

Hi @moneumiko ,

 

I'm not sure, because I don't have access to AutoCAD LT now.

But I think nothing has changed.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

maxim_k
Consultant
Consultant

@moneumiko ,

 

From AutoCAD LT online help:

"Note: The USERS1-5 system variables are not available in AutoCAD LT for Mac OS."

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes

moneumiko
Advocate
Advocate

Thanks! That's a pity... I use a lot of macros, also with the Diesel variables. I'm going to get a mac (at last!) in near future but I think I'll stick to the windows AutoCAD (either through parallels or just switching between devices). Although I will check the mac one too!

0 Likes

maxim_k
Consultant
Consultant

Hi @moneumiko ,

 

You can also leave your feedback here:

Product feedback


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes