Get User Properties

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

cam
Master Corporal
Master Corporal
Posts: 39
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.8
Location: Germany

Get User Properties

Unread post by cam »

Hi folks,

I try do read userproperties defined in my part document. The properties are defined in a library. In the part I set the property. If I try to read this in my code the programm crashes. Here is my part of code.

PdmObjectId userPropertyObjectId = TopSolidHost.Pdm.SearchDocumentByUniversalId(PdmObjectId.Empty, "Domain", "UserProperties");
if (userPropertyObjectId.IsEmpty) return;
DocumentId userPropertyDocId = TopSolidHost.Documents.GetDocument(userPropertyObjectId);

ElementId param = TopSolidHost.Parameters.SearchUserPropertyParameter(docID, userPropertyDocId); // crash
Greetings
Chris
Post Reply