cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

How to get shape of selection used for 3DFilter after filterd?

HKM
Contributor

3DfilterShape.jpg

19 REPLIES 19

As stated in the post,
there is no selection marquee on screen at the time of processing.

Ralph Wessel
Mentor

You mean the user has already erased the selection marquee? If so, there's nothing you can do afterward.

 

If you want to know what the marquee shape was previously, I suggest capturing it when it's created so you still have it even if the user clears it.

Ralph Wessel BArch
Software Engineer Speckle Systems

So what I'm interested in is not the shape of the selection marquee, but the shape of the currently active 3D filter.

HKM
Contributor

The shape of the 3D filter will be maintained indefinitely until you press the [F5] key again.
I would like to know the shape of this maintained 3D filter.

Ralph Wessel
Mentor

I think a lot of this comes down to how Archicad works. If you draw a marquee in a 2D (plan) view and then move to 3D, it builds the 3D scene cropped to the 2D marquee. But if you build the 3D scene again with the 3D view already open, it rebuilds the whole 3D scene again without any cropping to the 2D marquee. But the marquee still remains in 2D unless you explicitly clear it, so if you move back to the 2D view and then rebuild the 3D view from there, the cropping will reappear again.

 

ACAPI_Selection_Get will get the shape of that marquee for you - I'm pretty sure that's what you want.

Ralph Wessel BArch
Software Engineer Speckle Systems

Create a view cropped with the 3D filter.
Whenever you call up the view you created, the 3D filter will be recreated.
The selection marquee doesn't matter in this case.

I would like to know the shape of the 3D filter.

OK, so you are not talking about simply viewing a marquee crop in 3D.

You want the actual crop that is stored when you save a view in the view map.

I can't help you with that as I know nothing about API, just trying to clarify what you want.

I was under the impression you just wanted the marquee shape from the plan, which I think is what Ralph was thinking as well.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Thank you that is exactly right.

Ralph Wessel
Mentor

Following up on Barry's observation, can you confirm that you want the cropping stored with a 3D view stored in the Navigator? And applied according to the View setting (as shown in the attached snapshot (under marquee effect)?

RalphWessel_0-1717745741246.png

 

Ralph Wessel BArch
Software Engineer Speckle Systems

It has the same settings.

3DfilterSetting_20240607.jpg

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!