Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I'm looking to apply a dataset to an artifact as part of a java method to automatically grab and apply datasets to all wires on a sheet, but am getting caught at the final step. I have a populated artifact, and know which dataset to apply, but am having trouble figuring out how to marry the two together.
Here's a quick rundown of pseudo code:
for each wire on page {
verify wire has valid parameters
if (wire is valid) {
grab artifact information for wire
check for a matching dataset
if (matching dataset exists) {
apply dataset to wire // Here's what I don't know how to do
}
}
}
Can someone guide me towards if / how I can go about finishing this? I think I'm close to the solution, but I've got to be missing some piece...
Thanks!
