- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I have been searching here in the forum for a long time but unfortunately have not yet found a solution.
Is there a way to access the iProperties/project via the API and query the values?
I have the following code but I don't know which function I can use to query it.
Row 22 I try to search for it but it doesn'twork.
private static void GetOccurences(ComponentOccurrences componentOccurrences, int level, IProgressTracker tracker, CancellationToken token)
{
double count = 0;
int numberOfAllObjects = componentOccurrences.Count;
foreach (ComponentOccurrence occurence in componentOccurrences)
{
Functions.ProgressBar.CancelJob(tracker, token);
//MassProperties
var massProperties = occurence.MassProperties;
//RefKey
byte[] myRefKey = { };
occurence.GetReferenceKey(ref myRefKey, _createKeyContext);
listRefKeys.Add(_documentAssembly.ReferenceKeyManager.KeyToString(myRefKey)); //RefKEy kontrollieren
//GetProperties
var name = occurence.ItemByName["Description"];
}
}
Many thanks for your help.
Greetings
Chris
Solved! Go to Solution.