Well, the answer to yesterday's question was Test2. In order to avoid the layout locking problem (which I don't know why I had it in the first place), AutoCAD must load the form in memory. The downside to this is that I can no longer set my form to appear in the center of the AutoCAD session. I have to find a more elegant way that to move the form into position manually.
On to bigger problems for now...
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts
Friday, January 28, 2011
Thursday, January 27, 2011
AutoCAD API error when adding text to a drawing
I have been working on a C# program that will ask the user for an insertion point and an angle before adding a simple DTEXT object to the drawing. I have encountered a problem that I have never seen before.
After the text was added to the drawing, in ModelSpace or PaperSpace, I could no longer change the active layout. The workaround was to do a REGEN and all returned to normal. I have spoken to Autodesk about this and it might be an issue with French versions of AutoCAD (I tested with 2008, 2009 and 2010 French).
To avoid the problem, the way I called my dialog box had to be changed. A command-line version of my program does not have the problem at all so it was probably related to the dialog box anyway. Here are the 3 different ways I can call my form:
Can you guess which one does work properly? I will post the answer tomorrow and will try it out on my English versions of AutoCAD for good measure as well.
After the text was added to the drawing, in ModelSpace or PaperSpace, I could no longer change the active layout. The workaround was to do a REGEN and all returned to normal. I have spoken to Autodesk about this and it might be an issue with French versions of AutoCAD (I tested with 2008, 2009 and 2010 French).
To avoid the problem, the way I called my dialog box had to be changed. A command-line version of my program does not have the problem at all so it was probably related to the dialog box anyway. Here are the 3 different ways I can call my form:
Can you guess which one does work properly? I will post the answer tomorrow and will try it out on my English versions of AutoCAD for good measure as well.
Wednesday, September 02, 2009
20 Years of Programming and 15 Years of AutoCAD
I apologize for not posting more this summer. It's been a hectic time with vacations and health problems. So, for now let's look towards a good fall 2009.
This month, I am celebrating 20 years of computer programming and 15 years of AutoCAD use.
I have worked with the following programming languages:
As for AutoCAD, I started with AutoCAD 9 on an amber-colored monochrome screen and have used all versions since except for AutoCAD 11. I never saw it in use so it must of been a quick to be replaced version.
Here's are 2 questions for all visitors:
Je m'excuse pour ne pas avoir écrit plus cet été. Les derniers mois ont été fous ave cles vacances et des problèmes de santé. Regardons en avant vers un bon automne 2009.
Ce mois-ci, je célèbre mes 20 ans d'expérience en programmation et mes 15 d'utilisation d'AutoCAD. J'ai travaillé avec les languages ci-dessus mais je n'utilise plus les 3 premiers. J'aimerais convertir tout mon code en VB6 / VBQ vers du .NET puisque Autodesk et Microsoft diminues de plus en plus le support pour ces options.
Pour AutoCAD, j'ai commencé avec la version 9 sur un écran ambre monochrome. J'ai utilisé tous les version depuis sauf pour la version 11 que je n'ai jamais eu la chance de voir.
Voici 2 questions pour les visiteurs:
This month, I am celebrating 20 years of computer programming and 15 years of AutoCAD use.
I have worked with the following programming languages:
- GW Basic
- TurboPascal 6.0
- Fortran 77
- AutoLISP
- Visual Basic 6 / VBA / VBScript / VB.NET
- Java
- C#
- Python
As for AutoCAD, I started with AutoCAD 9 on an amber-colored monochrome screen and have used all versions since except for AutoCAD 11. I never saw it in use so it must of been a quick to be replaced version.
Here's are 2 questions for all visitors:
- Which version of AutoCAD did you start with?
- Which programming languages do you use or have used?
Je m'excuse pour ne pas avoir écrit plus cet été. Les derniers mois ont été fous ave cles vacances et des problèmes de santé. Regardons en avant vers un bon automne 2009.
Ce mois-ci, je célèbre mes 20 ans d'expérience en programmation et mes 15 d'utilisation d'AutoCAD. J'ai travaillé avec les languages ci-dessus mais je n'utilise plus les 3 premiers. J'aimerais convertir tout mon code en VB6 / VBQ vers du .NET puisque Autodesk et Microsoft diminues de plus en plus le support pour ces options.
Pour AutoCAD, j'ai commencé avec la version 9 sur un écran ambre monochrome. J'ai utilisé tous les version depuis sauf pour la version 11 que je n'ai jamais eu la chance de voir.
Voici 2 questions pour les visiteurs:
- Quelle est votre première version d'AutoCAD?
- Quelles languages de programmation avez-vous utilisés?
Subscribe to:
Posts (Atom)

