APIEnv_SetCurrent3DStyleID Error
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-06-01
03:56 AM
- last edited on
2021-09-14
09:36 AM
by
Noemi Balogh
2021-06-01
03:56 AM
I have Error This Source in Debug
(ArchiCAD 23 API / Windows / Visual Studio 2017 C++/Japanese)
//----------------------------------------------
Error Message / Code Stopped
ハンドルされない例外が0x0007FF8866B4B89(KernalBase.dll)で発生しました
(ARCHICAD.exe内);
0xC000041D:ユーザーコールバック中に未処理の例外がはっせいしました。
//----------------------------------------------
GS::UniString curStyleName;
GS::Array <GS::UniString> StyleList;
GSErrCode err = ACAPI_Environment(
APIEnv_Get3DStyleListID
, &stylesNames
, ¤tStyleName
);
if(err==NoError){
GS::UniString u = StyleList[0];
err = ACAPI_Environment(
APIEnv_SetCurrent3DStyleID
, &u
);
}
//----------------------------------------------
(ArchiCAD 23 API / Windows / Visual Studio 2017 C++/Japanese)
//----------------------------------------------
Error Message / Code Stopped
ハンドルされない例外が0x0007FF8866B4B89(KernalBase.dll)で発生しました
(ARCHICAD.exe内);
0xC000041D:ユーザーコールバック中に未処理の例外がはっせいしました。
//----------------------------------------------
GS::UniString curStyleName;
GS::Array <GS::UniString> StyleList;
GSErrCode err = ACAPI_Environment(
APIEnv_Get3DStyleListID
, &stylesNames
, ¤tStyleName
);
if(err==NoError){
GS::UniString u = StyleList[0];
err = ACAPI_Environment(
APIEnv_SetCurrent3DStyleID
, &u
);
}
//----------------------------------------------
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-06-01 02:22 PM
2021-06-01
02:22 PM
In the code you posted it seems that some variable names are inconsistent (curStyleName <-> currentStyleName, StyleList <-> stylesNames), but that might be fine depending on the context your code is in.
Anyway I also get the same error when running the function "Do_Edit3DStyles" from the API Example "Environment_Control".
When debugging it I saw, that it runs into the following assertion:
Anyway I also get the same error when running the function "Do_Edit3DStyles" from the API Example "Environment_Control".
When debugging it I saw, that it runs into the following assertion:
ODB assertion failed at P:\VMWD\Build\Sources\ObjectDatabase\ObjectDatabaseDll\Database\ODBDatabase.cpp 1275 assert id: A9CF0419-32EB-4DEB-A7EB-73B9F6B82C7F description: can't open modification scope inside transaction (modification scope should be the outermost)I then tried to wrap ACEnv_SetCurrent3DStyleID in ACAPI_CallCommand but that still gives the same error. I filled out a bit more detailed bug report for Graphisoft. In case I hear back from them I'll let you know.
Automating Archicad with Add-Ons, GDL-Objects & Python Archi-XT.com
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-06-03 03:57 AM
2021-06-03
03:57 AM
Thank You Your Answer.
Sorry, I missed My Variable Names in C++ Source.
But This Error is not caused by Variable Names.
I'm hoping in order to evade this error by your report.
Sorry, I missed My Variable Names in C++ Source.
But This Error is not caused by Variable Names.
I'm hoping in order to evade this error by your report.