Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Annotation Array is not displayed correctly at PartStudioData
georg_von_vietinghoff
Member Posts: 9 ✭✭

The values are displayed correctly, but not the part. Ideally, the configured part name would be displayed here.
Does anyone have an idea or solution?
here is my code:
Many thanks and merry christmas
George
here is my code:
annotation { "Name" : "Bohrung setzten", "Item name" : "Bohrer", "Item label template" : "X #xri: Y #yri: #bohrer"}
definition.myBohrer is array;
for (var Bohrung in definition.myBohrer)
{
// Nested parameters defined here, as e.g. widget.myParameter
annotation { "Name" : "X-Richtung" }
isLength(Bohrung.xri, LENGTH_BOUNDS);
annotation { "Name" : "Y-Richtung" }
isLength(Bohrung.yri, LENGTH_BOUNDS);
annotation { "Name" : "Bohrer auswaehlen" }
Bohrung.bohrer is PartStudioData;
}
Many thanks and merry christmas
George
Tagged:
0
Comments
-
PartStudioData parameters without the dialog is opened display the name of the Part Studio, not the Part. If you would like it to behave differently, I would suggest raising an improvement request!0
-
it works


and that's it, why it works:
var configname = Bohrung.bohrer.configuration.Konfig_Bohrungenvar bennenung = l_x_pos/meter*1000 ~ "/" ~ l_y_pos/meter*1000 ~ "/" ~ l_z_pos/meter*1000 ~ "/" ~ configname;setFeatureComputedParameter(context, id, { "name" : "bn", "value" : bennenung });
it accesses the Featurescript ID and reads it out. Since this is all in a "map", you can also get to it.0

