cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

ACAPI_MenuItem_RegisterMenu returned -7003

Emkave
Enthusiast

Hello. I have a function ACAPI_MenuItem_RegisterMenu returing code -7003.
What does it mean?
There is no description for such error code in the Archicad API documentation.

Thank you in advance! 

3 REPLIES 3

Hi!

 

Unfortunately it seems to be a very unspecific error. See API Development Kit xx.xxxx\Support\Modules\GSRoot\Definitions.hpp.

There it says:

enum ErrorType : GSErrCode {
	ErrRead			=	-19,	// == readErr		on Mac		/*I/O System Errors*/
	ErrDskFul		=	-34,	// == dskFulErr		on Mac		/*disk full*/
	ErrIO			=	-36,	// == ioErr			on Mac
	ErrEof			=	-39,	// == eofErr		on Mac		/*End of file*/
	ErrFnf			=	-43,	// == fnfErr		on Mac		/*File not found*/
	ErrParam		=	-50,	// == paramErr		on Mac
	ErrPerm			=	-54,	// == permErr		on Mac		/*permissions error (on file open)*/
	ErrWrPerm		=	-61,	// == wrPermErr		on Mac		/*write permissions error*/
	ErrMemoryFull	=  -108,	// == memFullErr	on Mac
	ErrNilHandle	=  -109,	// == nilHandleErr	on Mac
	ErrUserCanceled	=  -128,	// == userCanceledErr on Mac
	ErrTime			= -2015,	// == invalidTime	on Mac
	ErrNilPtr		= -7001,
	ErrEmptyHandle	= -7002,
	Error			= -7003,
	Cancel			= -7004,
	ExceptionError	= -7005
};

 

can you post more of the code?

 

Best regards,
Bernd

Automating Archicad with Add-Ons, GDL-Objects & Python Archi-XT.com

The code was:

err = ACAPI_MenuItem_RegisterMenu (32500, 0, MenuCode_UserDef, MenuFlag_SeparatorBefore);

It was used in IFCHook_Test.cpp and  I was getting this error when I copied and pasted the entire example in order to solve my different issue with PropertyHook.

I see. I've posted a possible solution in the other thread.
Here are some ideas for this problem:

  • See if it goes away with a Release build
  • Make sure the STR resource 32500 is available, set up and processed correctly
  • Make sure you are also using ACAPI_MenuItem_Initialize in the Initialize function
Automating Archicad with Add-Ons, GDL-Objects & Python Archi-XT.com

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!