Choose your top Archicad wishes!

Read more
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

API_CWSegmentType vs. API_CWallSegmentType

Anonymous
Not applicable
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
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
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.
dan wrote:
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.
Thank you very much for this feedback! I don't know any reason for that, so I hope we can fix this soon.

Regards,
Tibor

View solution in original post

1 REPLY 1
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
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.
dan wrote:
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.
Thank you very much for this feedback! I don't know any reason for that, so I hope we can fix this soon.

Regards,
Tibor

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!