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

Post Offset & Connections

Lingwisyer
Guru
Hi all,

Following on from a previous post, how can you offset a post from its centre?
The current post is created with Wall and Slab objects then saved out as a Railing Post. When generated, the objects origin is it's geographical centre. At first I did not think that this would be an issue, as I could just offset the profile for the Top Rail to align it with the fixing, but if I want to add columns within the entity I run into an alignment issue. I would rather not have to model the post in GDL, but if that is the only way...

It also appears to be mirroring along the X axis when a module containing it is mirrored along the Y axis...
*Split into a separate post

Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
I think there should be 2 ADD commands in your auto generated script - at least there is in mine.

But if I make a post centred on the Project Origin, the script moves it so the bottom left corner is on the origin.
But if I script a post away from the user origin it seems to move it to the origin and then back again.
I don't quite follow why it did this but you should be able to add a distance to the second ADD (the one just before the sprism to move the post a bit.
I did this with a 3rd post (saved as from post 2) and added 0.1 to the x and y values.
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

4 REPLIES 4
Barry Kelly
Moderator
Have you seen this tip for creating posts?

https://helpcenter.graphisoft.com/tips/archicad/modelling/how-to-create-a-custom-railing-post/

It seems to be all about how you position it to the origin.
If that doesn't work I am sure you can open the object and put in an ADD command.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
Yeah, I saw that post. That appears to be more about orientation, rather than the actual origin. I tried creating my post in a empty file and all I could manage to do was rotate the post around it's centre point. I was originally thinking about using the ADD command, but when I open up the 3D script it appeared to be defining the shape in an arbitrary position in space by coordinate rather than in reference to a local origin...

Extract from 3D script:
group 	"group_5F9228FC_9393_4DD6_8C46_813A448B552C"
    pen     penAttribute_4
    set building_material buildingMatAttribute_1, DEFAULT, DEFAULT
    sect_attrs{2} penAttribute_5, lineTypeAttribute_1
    add     -8.621364315602, -10.62606302127,          8.5
    rotz             270
    rotx              90
    roty             -90
    sprism_{4} bms_buildingMatAttribute_1, bms_buildingMatAttribute_1, bms_buildingMatAttribute_1, 7,
                 5,            0,            0,            1,            0, -0.009999999999998,            0,
                       0,            0,            1,            0,            0,            0,
                   -0.08, 0.009999995529647,     15, bms_buildingMatAttribute_1,
                   -0.08, -6.718815388436E-17,     15, bms_buildingMatAttribute_1,
            -6.109481948124E-9, -6.718815388436E-17,     15, bms_buildingMatAttribute_1,
            -6.109481948124E-9, 0.009999995529647,     15, bms_buildingMatAttribute_1,
                   -0.08, 0.009999995529647,     -1, bms_buildingMatAttribute_1
    del          2
    base
    vert    -4.898587196589E-18,         0.08, -7.208674108095E-17
    vert    0.009999999999998,         0.08, -7.208674108095E-17
    vert    5.098616525426E-33, -8.326672684689E-17, -6.718815388436E-17
    vert    -4.898587196589E-18,         0.08,        0.995
    coor{2}      2,    224,     -1,     -2,     -3,     -4
    rotx              90
    roty             -90
    body    -1
    del          2
    del          2
endgroup
They should make it so that including a Hotspot when saving out an object would define the origin...


Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 
Solution
Barry Kelly
Moderator
I think there should be 2 ADD commands in your auto generated script - at least there is in mine.

But if I make a post centred on the Project Origin, the script moves it so the bottom left corner is on the origin.
But if I script a post away from the user origin it seems to move it to the origin and then back again.
I don't quite follow why it did this but you should be able to add a distance to the second ADD (the one just before the sprism to move the post a bit.
I did this with a 3rd post (saved as from post 2) and added 0.1 to the x and y values.
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
I didn't notice that the Local Origin was set different to the Global Origin. I found the right ADD to modify and now they align on the Local Origin which is what I wanted. My posts were always centred whether I generated it from the Project Origin or not...

I misinterpreted the script when I first skimmed through it. I have no idea what the VERT lines are doing...


Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660