SOLVED!
API_CWSegmentType vs. API_CWallSegmentType
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-11-28
08:59 AM
- last edited on
‎2022-10-04
04:49 PM
by
Daniel Kassai
‎2018-11-28
08:59 AM
Hello dear Archicad forum,
Does anyone know why there are two very similar but not quite the same entries for curtain wall segments?:
http://archicadapi.Graphisoft.com/documentation/api_cwsegmenttype
http://archicadapi.Graphisoft.com/documentation/api_cwallsegmenttype
From the memo I can get API_CWSegmentType using "const API_CWSegmentType& segment = memo.cWallSegments[0];", but is there any way I can get an API_CWallSegmentType? It has some more members which might be useful.
Also: Why is there a zero-width space after "API_" in the headers of the API documentation pages? This is incredibly frustrating, because copy-pasting the string and searching for examples in the "Examples" directory of the SDK did not yield any results until I tracked down the cause.
Thanks for any help,
- Dan
Does anyone know why there are two very similar but not quite the same entries for curtain wall segments?:
From the memo I can get API_CWSegmentType using "const API_CWSegmentType& segment = memo.cWallSegments[0];", but is there any way I can get an API_CW
Also: Why is there a zero-width space after "API_" in the headers of the API documentation pages? This is incredibly frustrating, because copy-pasting the string and searching for examples in the "Examples" directory of the SDK did not yield any results until I tracked down the cause.
Thanks for any help,
- Dan
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-01 10:33 AM
‎2018-12-01
10:33 AM
Dear Dan,
Thank you for notifying us!
API_CWallSegmentType is the old version of the API_CWSegmentType. So API_CWallSegmentType is not used anymore (since AC22), it's just a mistake that it was left in the documentation, sorry about it.
Those members which were in the old API_CWallSegmentType but you cannot find in API_CWSegmentType were moved to API_ElementMemo. Check cWSegPrimaryPattern, cWSegSecondaryPattern and cWSegPatternCells members of the API_ElementMemo structure.
Regards,
Tibor
Thank you for notifying us!
API_CWallSegmentType is the old version of the API_CWSegmentType. So API_CWallSegmentType is not used anymore (since AC22), it's just a mistake that it was left in the documentation, sorry about it.
Those members which were in the old API_CWallSegmentType but you cannot find in API_CWSegmentType were moved to API_ElementMemo. Check cWSegPrimaryPattern, cWSegSecondaryPattern and cWSegPatternCells members of the API_ElementMemo structure.
dan wrote:Thank you very much for this feedback! I don't know any reason for that, so I hope we can fix this soon.
Also: Why is there a zero-width space after "API_" in the headers of the API documentation pages? This is incredibly frustrating, because copy-pasting the string and searching for examples in the "Examples" directory of the SDK did not yield any results until I tracked down the cause.
Regards,
Tibor
1 REPLY 1
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-12-01 10:33 AM
‎2018-12-01
10:33 AM
Dear Dan,
Thank you for notifying us!
API_CWallSegmentType is the old version of the API_CWSegmentType. So API_CWallSegmentType is not used anymore (since AC22), it's just a mistake that it was left in the documentation, sorry about it.
Those members which were in the old API_CWallSegmentType but you cannot find in API_CWSegmentType were moved to API_ElementMemo. Check cWSegPrimaryPattern, cWSegSecondaryPattern and cWSegPatternCells members of the API_ElementMemo structure.
Regards,
Tibor
Thank you for notifying us!
API_CWallSegmentType is the old version of the API_CWSegmentType. So API_CWallSegmentType is not used anymore (since AC22), it's just a mistake that it was left in the documentation, sorry about it.
Those members which were in the old API_CWallSegmentType but you cannot find in API_CWSegmentType were moved to API_ElementMemo. Check cWSegPrimaryPattern, cWSegSecondaryPattern and cWSegPatternCells members of the API_ElementMemo structure.
dan wrote:Thank you very much for this feedback! I don't know any reason for that, so I hope we can fix this soon.
Also: Why is there a zero-width space after "API_" in the headers of the API documentation pages? This is incredibly frustrating, because copy-pasting the string and searching for examples in the "Examples" directory of the SDK did not yield any results until I tracked down the cause.
Regards,
Tibor