Message 1 of 3
change sketch number in part ipt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it a way to change sketch number in part ipt?
This code simply list numbers and names :
Dim oModel As PartDocument oModel = ThisDoc.Document Dim oDestDef As PartComponentDefinition oDestDef = oModel.ComponentDefinition Dim oSketch As Sketch For i = 1 To oModel.ComponentDefinition.Sketches.Count oSketch = oModel.ComponentDefinition.Sketches(i) Logger.Info(i & " : " & oSketch.Name) Next
INFO|1 : sketch_MAIN
INFO|2 : sketch_schedule
INFO|3 : sketch_nozzle
INFO|4 : sketch_hole
INFO|5 : sketch_rosette
INFO|6 : sketch_hub
So, all I want to achieve is to change (move) sketch_hole no. 4 to number 5!
And so on: 5 → 6; 6 → 7.
Unfortunately, if I move EOP before sketch no. 4 and add a new sketch, this sketch will get the last number.
I need this because other rules refer to the sketch numbers (and not to the name, which is being changed).