cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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