Showing posts with label 2005. Show all posts
Showing posts with label 2005. Show all posts

Tuesday, July 21, 2009

Blog Post #100 - Macro Problems

Well, we have reached the big 100! My thanks to all the readers of this blog. For #100, I wish to share a macro problem I have encountered in AutoCAD 2009.

From AutoCAD 2005 to 2008, I would create a palette macro to program a fixed Fillet radius value when selected. Here is it:
In AutoCAD 2009, that macro no longer works. I had to changed it for this:
To program the FILLETRAD value with the macro, I had to use the FILLETRAD variable before launching the FILLET command. Very strange indeed. Has anyone else had a problem such as this with macros? Let me know!


Nous sommes rendu au 100e article du blog. Merci à tous les lecteurs! Pour le 100e, j'aimerais partager un problème que j'ai découvert avec les macros dans AutoCAD 2009.

L'image 1 représente une macro que j'utilisais dans les versions 2005 à 2008 d'AutoCAD pour faire un raccord avec un rayon prédéterminé. Cette macro de fonctionne pas dans AutoCAD 2009. Il a fallu que je le change pour celle dans l'image 2. Il fallait programmer le rayon de raccord avec la variable FILLETRAD au préalable de la commande FILLET.

Est-ce que quelqu'un a eu ce problème aussi? Laissez-moi savoir!

Wednesday, April 01, 2009

UNDO command died / La commande UNDO est mort

I migrated a client from AutoCAD 2005 to AutoCAD 2009 last week. They have a bunch of old LSP files that are used to simplify their workflow. Unfortunately, the LSP files which date back to 1991 through 1997 are changing variables that AutoCAD 2009 does not like. For example, the LINE and MATCH PROPERTIES commands no longer worked. The variable DEMANDLOAD was set to 0 instead of 3. Another example, the UNDO command stopped working. This was fixed by typing UNDO and choosing the ALL option to reactivate it. Somehow, the OFF option had been set.

Rule #1 of migration: Don't assume that all existing macros will still work. Test everything beforehand!


J'ai migré un client d'AutoCAD 2005 à AutoCAD 2009 la semaine dernière. Ils utilisent des vieux LSP pour aider leurs processus d'affaires. Malheureusement, les fichiers LSP datent de 1991 à 1997 et changent des variables qu'AutoCAD 2009 n'aime pas. Par exemple, les commandes LINE et MATCH PROPERTIES ne fonctionnaient plus. La variable DEMANDLOAD était à 0 au lieu de 3. Aussi, la commande UNDO de fonctionnait plus. Il a fallu changer l'option du UNDO de OFF à ALL. Je ne sais pas comment le OFF s'est activé.

Règle #1 de la migration: N'assumez pas que tout vos macros vont fonctionner. Faites des essais au préalable!