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
Get User Properties
Moderators: remi77, jacs, Daniel
-
- 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
Greetings
Chris
Chris