Rename Features
Rename Features
(OP)
There are a couple Features we use to create shapes unique to our product, primarily Swept Cut. We use this to create a feature we call a "Flexure". Can I rename the Swept Cut Button to "Flexure" such that the name "Flexure" shows up in the Feature Tree?






RE: Rename Features
Try a slow, double-click on the feature name. Or you can go to the feature properties and change it there.
If you go to System Options, Feature Manager and chack the box next to "Name feature on creation", you will get an edit box every time the feature is created.
RE: Rename Features
RE: Rename Features
Sorry
RE: Rename Features
You can create a macro that performs a cut extrude and assign it to a button. You can create your own bitmap for the button.
When you create the macro button you will be prompted to point to the macro file that you created. Then you can point to the bitmap image you created (if you choose to do so). Also you can create custom tooltips that says "Flexure" when you mouse over the toolbutton.
In the macro you can call the extrude cut feature, and as you know after feature creation the last feature is always selected, so after that, all you need to do is change the popertied of the already selected feature.
the code would look like this...
Part.FeatureManager.FeatureCut True, False, False, 1, 0, 0.027432, 0.027432, False, False, False, False, 0.01745329251994, 0.01745329251994, False, False, False, False, 0, 1, 1
Part.SelectionManager.EnableContourSelection = 0
boolstatus = Part.Extension.SelectByID("Cut-Extrude1", "BODYFEATURE", 0, 0, 0, False, 0, Nothing)
Part.SelectedFeatureProperties 0, 0, 0, 0, 0, 0, 0, 1, 0, "Flexure1"
Part.ClearSelection2 True
The problem here is this, You cannot have the same name for features in the tree. so you will have to generate some logic that will scan the tree and keep track of the already used names and make a incremental change each time you create a new one.
Flexure1
Flexure2
etc.
hope that helps.
Regards,
Jon
jgbena@yahoo.com
RE: Rename Features
Regards,
Jon
jgbena@yahoo.com
RE: Rename Features
We may just be limited to either having this shape in start parts and modifying whenever possible, or going through the rather cumbersome steps each time a new Swept Cut is created.
RE: Rename Features
I was just using the extrude as an example but you can use a macro for a sweep.. I have done this.. perhaps you can send me a sample of what you are trying to do and I can give you a recommendation..
Regards,
Jon
jgbena@yahoo.com