i need some help to create a Setlist.
I created a Setlist with the Block UI Styler and also created a Seed dlx File for the Set List (Curve Collector).
Now i want to implement the .dlx into Seeder.
I want to use the SetSeed Function.
But i'm not able to do this because the Function is internal protected.
How do i set the Seed ? when i type NXOpen.BlockStyler.SetList. there is no SetSeed.
See attached File.
i hope that anybody can help me
Solved! Go to Solution.
See the block specific properties table for SetList in the online help. Note that the SeedDlxFile property can only be set at creation (value in the Access Colums is "C"). This means it must be set in the Block Styler itself, not via code.
Although @JimB is correct, you can only set the seed at design time, your source code image shows that you would not see a SetSeed method even if there was one. You are trying to use it from the class not your instance of it which would not work. What you should do is first set your 'mySeeder' variable to an instance of SetList and then:
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: [NX184.108.40.206 MP11 64bit] Testing: [NX220.127.116.11 MP1]
Hi， I am trying to use the Set List control, and I have made a new UI Styler Dialog as the SeedDlxFile.
Then I set the SetSeedDlxFile property of the Setlist, but I don't know how to obtain the value in the seeddlxfile.
Can you tell me something about it? Thank you.
I am working on the application with set list .. sincerely I will prefer not work with it =S
I think that you are looking for next code :
public int apply_cb()
int errorCode = 0;
UIBlock sets = list0.GetItems();
foreach (UIBlock aSet in sets)
CompositeBlock compBlk = (CompositeBlock)aSet;
NXOpen.BlockStyler.SelectObject selBlk =
NXOpen.BlockStyler.StringBlock nameBlk =
TaggedObject faces = selBlk.GetSelectedObjects();
for (int ii = 0; ii < faces.Length; ii++)
Face aFace = (Face)faces[ii];
catch (NXException ex)
errorCode = 1;
Echo("Apply_cb threw: " + ex.Message);
full example GTAC