SOLVED!
How to get Sun Guid?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-25
12:29 PM
- last edited on
2022-10-05
01:22 PM
by
Daniel Kassai
2019-07-25
12:29 PM
Hi. I'm trying to figure out how do I get the guid of the sun ( if this is even possible ? ). All that I've found is API_SunInfo which is not helpful for me, the 2nd approach is returning empty GS::Array.
Thanks for your assistance.
Thanks for your assistance.
API_SunInfo sunInfo = {}; GSErrCode err2 = ACAPI_Environment( APIEnv_GetSunSetsID, &sunInfo, nullptr, nullptr );My another try using elem list
GS::Array<API_Guid> elemList; GSErrCode err = ACAPI_Element_GetElemList( API_SkylightID, &elemList, APIFilt_None, APIVarId_Skylight, APINULLGuid );
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-26 12:37 PM
2019-07-26
12:37 PM
My intention was to get the Sun for the Corona render element. I've got it covered now, thanks anyway!
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-25 02:47 PM
2019-07-25
02:47 PM
Hi,
The sun is _not_ an ARCHICAD element, so the first option is the only way to go.
Best, Akos
The sun is _not_ an ARCHICAD element, so the first option is the only way to go.
Best, Akos
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-26 08:08 AM
2019-07-26
08:08 AM
Yes, but it returns just the API_SunInfo . Also, I can get SunSettings from the Modeler. But how can I obtain the Sun pointer/reference??
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-26 11:06 AM
2019-07-26
11:06 AM
Hi,
There's no sun object in ARCHICAD, it is a built-in entity. What kind of information would you like to obtain from that?
Best, Akos
There's no sun object in ARCHICAD, it is a built-in entity. What kind of information would you like to obtain from that?
Best, Akos
Solution
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-07-26 12:37 PM
2019-07-26
12:37 PM
My intention was to get the Sun for the Corona render element. I've got it covered now, thanks anyway!