Document & Visualize forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic wall orientation – N / W / S / E

Nikola Aleksic
Participant

Can we make a wall property using "Expressions" that automatically recognizes its own orientation to project origin?

 

My thoughts are to identify wall’s start/end X and Y coordinates, apply simple “cos” and “sin” for recognizing wall's vector direction and then use “wall orientation” property (left or right of reference line) as a condition to name the orientation as N, W, S or E.

 

Problem is – how to make a Property that identifies start/end X and Y coordinates of any wall (or any other library element for that matter)?

5 REPLIES 5

SenecaDesignLLC
Advisor

I have achieved this in Windows and doors and wall accessory but never tried with properties. I doubt it can be done

FREE wall Accessory framing and coverings
bit.ly/BIMRithmWallAccessories

FREE Truss object.
https://bit.ly/BIMRithmTrussV1
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Barry Kelly
Moderator

I see the curtain wall panel has a property parameter for 'Angle from north'.

But I see nothing for walls or any other element to do with orientation from north or project origin.

So I don't think it can be done in property expressions.

 

Barry.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

As I understand, wall coordinates (begC , endC). are only available in the C++API. You would also need the relative north pointer angle. There are relative straight forward structures in the API to obtain this info there.

 

You could then transfer the coordinates for each wall to a Python script via the ExecuteAddOnCommand. Complete the calculations within the script and write the results (direction) to a custom property assigned to each wall.  An expression is not capable of doing this. This would be a relative short application for a person knowable with The API or the Python API.

 

BTW: about a year ago, a wish was accepted to allow expressions to run Python scripts. That would solve your problem. We're still waiting?? However, allowing Python scripts to run with every update would be problematic (IMNSHO).

Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 25

Miha Nahtigal
Participant

It can be done with property objects that can be auto-attached to elements and than scheduled. I have implemented this functionality for my windows’ reports. Unfortunately listings are going to be absolute soon. 

Just to clarify, What Miha means by Property Objects is as in GDL Property Objects that can be associated with elements and used in the old List Schemes.

Not Properties and Classifications.

 

The old list schemes do still work (but not with new elements) and have not been updated in many years.

 

Barry.

 


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Start a new conversation!

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!