Save User Data in Library Part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-07
04:26 PM
- last edited on
‎2021-09-15
12:38 PM
by
Noemi Balogh
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 01:53 PM
If it's a door/window, the wall contains links to the embedded objects in its memo structure. You can obtain this with
If it's an ordinary object, you will need to establish a link between the wall and object using
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-07 06:48 PM
If the former, use
Otherwise (if the object needs to 'see' the data) you probably need to write the data to object parameters.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 01:39 PM
Later the user selects an element and the addon should get the library part from it and read the user data from the parameter section.
The first part seems to be working using ACAPI_LibPart_GetSect_ParamDef.
But how do I get the library part from a selected element?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 01:53 PM
If it's a door/window, the wall contains links to the embedded objects in its memo structure. You can obtain this with
If it's an ordinary object, you will need to establish a link between the wall and object using
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:07 PM
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:36 PM
But calling ACAPI_Element_GetMemo now, the wallWindows pointer in API_ElementMemo is empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:47 PM
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2020-03-12 03:53 PM
where the API_ElementMemo structure is defined there is the line:
API_Guid *wallWindows; // output only (obsolete, use ACAPI_Element_GetConnectedElements instead)
so maybe this part should not be used any more?