Personal tools
You are here: Home Forum Use shaper renaming created arcs

shaper renaming created arcs

Up to Use

shaper renaming created arcs

Posted by Henning S at October 03. 2019

Hello,

I would like to rename the results created by the addArc method. In the attached script the renaming with the function setName doesn't seem to have an effect on arcs but the same procedure works with lines:

 

SketchArc_1 = Sketch_1.addArc(14.0, -39.0, 4.0, -56.0, 31.0, -27.0, False)
SketchArc_1.setName("test")
SketchArc_1.result().setName("test")

Best

Henning

 

PS the shaper is a signifcant step forward. Thanks for sharing it

Attachments

Re: shaper renaming created arcs

Posted by Christophe Bourcier at October 04. 2019

Hi,

The name of sketch entities does not appear in the object browser. Their name is used for selection by naming.

If you name an arc "arc1" in the sketcher:

SketchArc_1.results()[1].setName("arc1")

You will be able to select it by:

model.selection("EDGE", "Sketch_1/arc1")

But what you probably want to do is to name the result edge like you made.

Or create a group named "arc1".

Christophe

Powered by Ploneboard
Document Actions