License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

Changing Drawing Title Object Parameters

Hi all,

 

I am looking to use the API to change custom parameters in a custom title object attached to a drawing, placed on a layout. 

 

Documentation suggests API_DrawingTitle contains the GUID of the placed title element (the placed object), but if I use ACAPI_Element_Get with the GUID from element.drawing.title.guid I get an APIERR_BADID error. Is it possible to modify the custom GDL title object parameters of a placed drawing with custom title?

 

I have the layout already open and active when testing this, so the database should already be correct.

 

Thanks,

Danny

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi Danny,

 

You should be able to modify the title's parameters via the original drawing element's memo (specifically the `params` member should contain those values).

 

Best, Akos

View solution in original post

3 REPLIES 3
Solution
Akos Somorjai
Graphisoft
Graphisoft

Hi Danny,

 

You should be able to modify the title's parameters via the original drawing element's memo (specifically the `params` member should contain those values).

 

Best, Akos

Hi Akos,

 

Thanks - that works for what I need. So we cant use ACAPI_LibraryPart_ChangeAParameter and associated functions? I receive errors no matter what I set paramOwner.type.typeID to.

 

Kind regards,
Danny

Hi Danny,

 

The drawing title is tightly coupled with the drawing itself, so it cannot be handled separately.

 

Best, Akos