Message 1 of 10
ObjectARX->AutoLISP function question...

Not applicable
10-19-1999
10:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello again. Thanks to everyone who helped me out last time... I have
another question, though.
I've been building an ObjectARX app with MFC support for A2K (Map). My
commands have been initialized in the InitApplication() section of the file
with the entry point. I'm using the AddCommand function the ARX wizard sets
up. For example:
AddCommand("CCIIMPORT", "D2IMPT", "D2IMPT", ACRX_CMD_TRANSPARENT,
cciimportd2impt);
That works fine. After doing an appload from command line and typing
"d2impt", everything pops up. This function should be called from an
Autolisp routine, though, but it doesn't work as is from within the
Autolisp... So I tried changing the flags:
AddCommand("CCIIMPORT", "D2IMPT", "D2IMPT",
ACRX_CMD_TRANSPARENT|ACRX_CMD_DEFUN, cciimportd2impt);
Well, when I do that, neither the Autolisp routine or the command line
recognize it any more. Any suggestions? I need to use acedRetStr to send a
command string back to the Autolisp routine. Any help would result in my
undying gratitude! 🙂
--Todd Parsons, CCI
another question, though.
I've been building an ObjectARX app with MFC support for A2K (Map). My
commands have been initialized in the InitApplication() section of the file
with the entry point. I'm using the AddCommand function the ARX wizard sets
up. For example:
AddCommand("CCIIMPORT", "D2IMPT", "D2IMPT", ACRX_CMD_TRANSPARENT,
cciimportd2impt);
That works fine. After doing an appload from command line and typing
"d2impt", everything pops up. This function should be called from an
Autolisp routine, though, but it doesn't work as is from within the
Autolisp... So I tried changing the flags:
AddCommand("CCIIMPORT", "D2IMPT", "D2IMPT",
ACRX_CMD_TRANSPARENT|ACRX_CMD_DEFUN, cciimportd2impt);
Well, when I do that, neither the Autolisp routine or the command line
recognize it any more. Any suggestions? I need to use acedRetStr to send a
command string back to the Autolisp routine. Any help would result in my
undying gratitude! 🙂
--Todd Parsons, CCI