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.

GDL: Complex Profile Hotspots

Lingwisyer
Guru

Hi all,

 

Is there someway to extract the location of Hotspots within a Complex Profile?

 

I am using a Complex Profile as an operator in a SOE operation and would like to be able to use HOTSPOT to define snap points. Being able to identify the Hotspot with the greatest Y / lowest X value would be a bonus.

 

complex_hotspots.jpg

 

 

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
3 REPLIES 3
Barry Kelly
Moderator

I am not sure if this is of any help but there are a couple of REQUESTs for Profile geometry.

 

n = REQUEST ("Profile_default_boundingbox", name_or_index, xmin, ymin, xmax, ymax)


Returns the 2 defining coordinate point of the original bounding rectangle relative to the origo of the profile identified by name or index.
Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning.
Compatibility: introduced in ARCHICAD 21.

 

 


n = REQUEST ("Profile_default_geometry", name_or_index, n1, n2, ..., nm,
x11, y11, edgeVisible11, vertEdgeVisible11, additionalStatus11, ...,
x1n1, y1n1, edgeVisible1n1, vertEdgeVisible1n1, additionalStatus1n1,
x21, y21, edgeVisible21, vertEdgeVisible21, additionalStatus21, ...,
x2n2, y2n2, edgeVisible2n2, vertEdgeVisible2n2, additionalStatus2n2, ...,
xm1, ym1, edgeVisiblem1, vertEdgeVisiblem1, additionalStatusm1, ...,
xmnm, ymnm, edgeVisiblemnm, vertEdgeVisiblemnm, additionalStatusmnm)


Returns the original geometric data of the profile identified by name or index. Expression returns 0 and contains dummy return values (emtpy string
or 0) if used in parameter script, causing additional warning.

 

I have not tried using them.

I don't know any way of determining the position of a hotspot in a profile.

 

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
Lingwisyer
Guru

Those do not give you Hotspot locations.

 

I already use Profile_default_boundingbox to zero the origin of an extruded Complex Profile.

And Profile_default_geometry the request for the shape of of the selected Complex Profile.

 

 

 

Ling.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

I think not possible. 

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

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!