OSArch Community

IFC2x3 File - Reset Coordinates

  1. C

    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

  2. L
  3. L

    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?

  4. M

    @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]
    
  5. C

    @Moult thank you very much for your response. It works perfectly. Thank you.

  6. T

    cool.. i updated the wiki here, with @Moult's blurb.

Login or Register to reply.