BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

Local origin when placing objects

stahL
Contributor

When placing objects after modelling something far away (-> local origin changes after save and open)
newly created objects are placed near that point.

For example:
element.object.pos.x = 0;
element.object.pos.y = 0;
I expect the object to be placed at the orginal (0,0) and not the local one.

How can I achieve this?

Thank you for your help,
Jonas

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft

You can call ACAPI_ProjectSetting_GetOffset to get the current database offset, so you can calculate the origin accordingly.

View solution in original post

1 REPLY 1
Solution
Viktor Kovacs
Graphisoft
Graphisoft

You can call ACAPI_ProjectSetting_GetOffset to get the current database offset, so you can calculate the origin accordingly.

Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!