C
by camontellano on 24 Aug 2022, edited 2 Sep 2022
#
Hi Community,
I've played around with the file, but somehow I cannot get it to work properly. I'd like to move the whole Model so that the Blender Offset is "0". I (unfortunately) need to keep the file as 2x3. I wanted to run the Reset to Absolute Coordinates Patch but I don't know what to put on "Arguments"

Hope you can help
L
by lukas on 26 Aug 2022
#
search for the ifcpatch recipe.
https://community.osarch.org/discussion/comment/5261/#Comment_5261
L
by lukas on 26 Aug 2022, edited 26 Aug 2022
#
uhpps, you are already there..
within Blender/blenderBIM one can apply it, or use a script. Using the script is not straithforward since you have to have your environment set up right in the scripting window of blender..i do not always manage it..(probably because of win10?) Using the UI, you are right, it is sometime hard to find the arguments..
looking in the "recipe".py in source can help.
Found it the wiki: https://wiki.osarch.org/index.php?title=BlenderBIM_Add-on/BlenderBIM_Add-on_code_examples
or
https://wiki.osarch.org/index.php?title=BlenderBIM_Add-on/Using_the_Python_console_with_BlenderBIM_Add-on
starting point for scripting?
M
by Moult on 29 Aug 2022
#
@camontellano you should use the OffsetObjectPlacements recipe. The ResetAbsoluteCoordinates is simplistic and simply offsets any coordinate found that is larger than a threshold. In contrast, the OffsetObjectPlacements recipe lets you actually offset by a known amount.
The arguments for OffsetObjectPlacements are a list of numbers. If you specify 3 numbers [X,Y,Z], the coordinates will be offset by X, Y, Z. If you specify 4 numbers [X,Y,Z,Az], it will be offset by X, Y, Z and rotated along the Z axis by Az. If you specify 6 numbers [X,Y,Z,Ax,Ay,Az] it will translate along all three axes and also rotate along all three axes. Funky!
So try:
[-1092556.99198706,-1759766.9980104,0,0]
C
by camontellano on 2 Sep 2022
#
+1 votes
@Moult thank you very much for your response. It works perfectly. Thank you.
T
by theoryshaw on 2 Sep 2022
#
cool.. i updated the wiki here, with @Moult's blurb.