Author:gehairing
Posted: Fri Mar 11, 2016 11:22 am (GMT+1)
Hello the Forum![Smile]()
In another post i have related my difficulty to get an API_Guid for a Library Part. My problem is not resolved but here i'll ask a question for the same subject in a different manner.![Wink]()
I download a LibraryPart from a web server.
Once downloaded i set a serie of parameter in this library part. Each time the user place the LibPart object in the model, the instance has all the parameters i've added. That works fine.
I want also to set a serie of IFC parameters in this Library part. I don't know how to do this (because i can't get an API_Guid for the LibPart)
What i can do is :
- Download the LibPart,
- Wait until user places an instance of it in the model by using callback events and detect the right object,
- Apply the IFC data to the instance of the LibPart.
But this is not correct for me![Wink]()
Because the next time the user will insert the same LibPart the IFC Data will not be attached to the new instance of the LibPart.
My question is : Is it possible to set IFC data in an Library Part with the API ?
(it is possible to do it in the user interface)
Posted: Fri Mar 11, 2016 11:22 am (GMT+1)
Hello the Forum

In another post i have related my difficulty to get an API_Guid for a Library Part. My problem is not resolved but here i'll ask a question for the same subject in a different manner.

I download a LibraryPart from a web server.
Once downloaded i set a serie of parameter in this library part. Each time the user place the LibPart object in the model, the instance has all the parameters i've added. That works fine.
I want also to set a serie of IFC parameters in this Library part. I don't know how to do this (because i can't get an API_Guid for the LibPart)
What i can do is :
- Download the LibPart,
- Wait until user places an instance of it in the model by using callback events and detect the right object,
- Apply the IFC data to the instance of the LibPart.
But this is not correct for me

Because the next time the user will insert the same LibPart the IFC Data will not be attached to the new instance of the LibPart.
My question is : Is it possible to set IFC data in an Library Part with the API ?
(it is possible to do it in the user interface)