Get User Properties

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

Moderators: remi77, Daniel, jacs

Post Reply
Master Corporal
Master Corporal
Posts: 38
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.7
Location: Germany

Get User Properties

Post by cam » Mon Sep 19, 2016 6:19 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest