cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

MEP Rotation script, and keep his snap points

Anonymous
Not applicable
Hello
did someone achieves rotate a MEP connector without trigonometrical functions?, and keep the MEP vector available when a pice of pipe/duct its trying to connect to it.
If you use the rotation cursor of 3d script, it just lose the "auto connection" function, so you have to put the local cursor in the 0,0,0 global, before add the connector script and make the rotation connector by the trigonometrical functions in the parameters script.


I think the trouble with MEP objects is that the rotation has to be described with trigonometrical functions, because the connector always refers to the 0,0,0 global, no matter where is your cursor.
1 REPLY 1
Nader Belal
Mentor
hirofuro,

TL;DL Your way will not work, end of the story.

Explanation, the trigonometrical functions mission is to calculate:
1. Hotspots positions in 2D.
2. Calculate the normal vector values for each connection.

About the 0,0,0 origins, is to make scripting and vector calculations easier.

The trouble is you're trying to break the MEP objects' programming schema, without understanding how the schema was implemented to make it work.

Advise, follow the schema.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.