SOLVED!
Get the selected element
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-11-27
11:07 AM
- last edited on
‎2022-09-29
09:56 AM
by
Daniel Kassai
‎2019-11-27
11:07 AM
Hi.
I select an element on first level.
I want to get the element after I switch to the second level.
ACAPI_Selection_Get the api does't work.
How can get it ? thanks.
I select an element on first level.
I want to get the element after I switch to the second level.
ACAPI_Selection_Get the api does't work.
How can get it ? thanks.
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
‎2019-11-27 01:20 PM
‎2019-11-27
01:20 PM
How about:
1) UseACAPI_Selection_Get first to collect the selected elements
2) Extract whatever data you need from the selection
3) Search for the elements that should receive the new data
4) Apply the data to elements (on whatever floor)
1) Use
2) Extract whatever data you need from the selection
3) Search for the elements that should receive the new data
4) Apply the data to elements (on whatever floor)
Ralph Wessel BArch
Central Innovation
Central Innovation
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-11-27 12:27 PM
‎2019-11-27
12:27 PM
I assume you're working in the floor plan view? If so, ACAPI_Selection_Get can only get elements that are currently selected – if you can't select it as a user, this function won't retrieve it either. Can you describe the workflow you're trying to achieve? There might be a better solution.
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-11-27 01:13 PM
‎2019-11-27
01:13 PM
Ralph wrote:Yes,I'm working in the floor plan view.
I assume you're working in the floor plan view? If so,ACAPI_Selection_Getcan only get elements that are currently selected – if you can't select it as a user, this function won't retrieve it either. Can you describe the workflow you're trying to achieve? There might be a better solution.
I want to copy the properties of the selected element to other elements on another level.
Thanks.
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-11-27 01:20 PM
‎2019-11-27
01:20 PM
How about:
1) UseACAPI_Selection_Get first to collect the selected elements
2) Extract whatever data you need from the selection
3) Search for the elements that should receive the new data
4) Apply the data to elements (on whatever floor)
1) Use
2) Extract whatever data you need from the selection
3) Search for the elements that should receive the new data
4) Apply the data to elements (on whatever floor)
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-11-27 01:42 PM
‎2019-11-27
01:42 PM
Ralph wrote:Thanks.
How about:
1) UseACAPI_Selection_Getfirst to collect the selected elements
2) Extract whatever data you need from the selection
3) Search for the elements that should receive the new data
4) Apply the data to elements (on whatever floor)