Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

  
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Object element position problem. Origin can be changed?

YONGWOO KIM
Participant

Hello.

 

First, I create an object element and save project.

Then I reopen the project, delete the element and recreate it.

But the element is not created at the same point.

 

element.pos parameter is same.

element.pos is (200719367, 453674635, 0).
position in archicad is (401585515, 907246085, 0).
when I change element.pos to (0,0,0), position in archicad is (200866149, 453571450, 0)

 

I think the element's origin is changed.

I have to check where?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Hi.

 

I think you will also need to look at ACAPI_ProjectSetting_GetOffset and take the result API_Coord into account when setting the element.pos

 

Danny

View solution in original post

1 REPLY 1
Solution

Hi.

 

I think you will also need to look at ACAPI_ProjectSetting_GetOffset and take the result API_Coord into account when setting the element.pos

 

Danny