Hi,There are still a lot of V8 installation in the world, so I would like to extend some Elements with DG in V8. There is a sample “DGExamples” of low quality (unused functions, magic texts, link issues, etc.) as documentation. After reading and understanding (hopefully) the core of this sample, I got these few lines to add something to an existing element:
if (SUCCESS == mdlAssoc_getElementDescr(NULL, &ulFilePos, ullSchaleElmId, pModelRef, TRUE))
ElementRef ElmRef = mdlModelRef_getElementRef(pModelRefReal, ulFilePos);
if (NULL != ElmRef)
Bentley::Building::Elements::BuildingEditElemHandle beeh(ElmRef, pModelRef);
_catalogTypeName = L"Door";
_catalogInstanceName = L"x_Single Flush Panel";
//std::wstring const itemXPath = L"Door/Door/@DoorMaterial";
//std::wstring const itemValue = L"Wood";
//CCatalogSchemaItemT* pSchemaItem = NULL;
//if (NULL != (pSchemaItem = beeh.GetCatalogCollection().FindDataGroupSchemaItem(itemXPath)))
nRetErfolg = beeh.Rewrite();;
This is just to test, and yes, ElementHandle and ModelRefP are valid, and I know, I uses magic-text, too
Beeh seems to contain something, and beeh.GetCatalogCollection() does not return NULL or something funny.
But InsertDataGroupCatalogInstance() will throw a really heave exception with memory violation at 0x05.
Seems there is missing some initialization, but I did not find something in the help or sample.
What could I do?
25 Days and no response from Bentley...Robert Hook Dis you know who from the buildings-team could help?
Mit freundlichen Grüßen / Best regards Volker Hüfner
| AB_DATE Engineering Software | ab-date.de |
Hi Volker Hüfner,
The assigned Forum moderator(s) normally pick up on Unresponded or Unanswered posts on a regular basis (typically one or more times a day).
I will ask the product manager to see if a subject matter expert (SME) can review and respond to your post.
At the first glance, I see there are both pModelRef and pModelRefReal used when reading the element. Are you sure they refer to the same modelref?
Michael Butvinnik said: I see there are both pModelRef and pModelRefReal
yes you are right, but this only a typo here in the forum. I renamed pModelRefReal in the sample to pModelRef to make it more readable, but I did not catch all.
Just checked the original code. Only one variable, same modelRefP.
I think you are using ABD SS5 SDK(currently released) which is incompatible with ABD SS6. I have sent the unreleased ABD SS6 SDK to you by private message. Please try it and let me know your result.
Answer Verified By: Volker Hüfner
I have the same promblem as Volker and also need a solution, could you send unreleased ABD SS6 SDK to me also? Thanks.
Egor Zamiralov said:could you send unreleased ABD SS6 SDK to me also?
Your Forum biography is empty! We don't know who you are. Volker Hüfner is a member of the BDN, has a bio and contributes regularly to this Forum.
If you want Bentley Systems to treat you in a special way, such as handing out an unpublished SDK, then you should at least complete your bio. That doesn't guarantee you special treatment, but at least will give Bentley Systems an idea about your motives behind your request.
Volker and I are independent software developers (ISDs); we don't work for Bentley Systems.
Regards, Jon Summers LA Solutions
Thank you, Jon!
I'll fill my biography and then ask again.
Jon, I have changed my biography info, so can I ask for unreleased ABD SS6 SDK now?
Egor Zamiralov said: I have changed my biography info...
Egor Zamiralov said:Can I ask for unreleased ABD SS6 SDK now?
It's not up to me — as I wrote already, I don't work for Bentley Systems. Is your organisation a member of the Bentley Developer Network (BDN)?