Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking for a way to rename a selected set of work features through Ilogic. For example:
I'll make a part with 8 vertical work axis, and 3 horizontal work axis.
I want to name the vertical work axis "As_Stijl_*" and the horizontal work axis "As_Regel_*". * being the numbers from 1-8 and 1-3.
I found this bit of code, which renames all work axis in the part. I think it shouldn't be too hard to make something where you'd select a set of work features and rename only the selected set. But I have no idea how to start this. Can anyone help me out?
'Rename work axis oDoc = ThisApplication.activedocument i = 1 For Each oWorkAxis In oDoc.ComponentDefinition.WorkAxis If oWorkAxis.IsCoordinateSystemElement = False Then oWorkAxis.Name = "As_Stijl" & i i=i+1 End If Next
Solved! Go to Solution.