Reassigning profile to a feature

Reassigning profile to a feature

Anonymous
Not applicable
291 Views
4 Replies
Message 1 of 5

Reassigning profile to a feature

Anonymous
Not applicable
Hello!
Please, help me to solve one problem. How can I reassign a Profile to existing Feature?
0 Likes
292 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Which particular feature are you trying to edit? Can you psot the code you
have so far?

Sanjay-

wrote in message news:5683271@discussion.autodesk.com...
Hello!
Please, help me to solve one problem. How can I reassign a Profile to
existing Feature?
0 Likes
Message 3 of 5

Anonymous
Not applicable
I'm trying to edit CoilFeature. I have done this operation with ExtrudeFeature. It works correctly:
// getting existing sketch
PlanarSketch oSketch = oDef.Sketches["tooth_profile"];
/*
* customizing sketch...
*/
// creating profile
Profile ToothProf = oSketch.Profiles._AddForSolid();
// modifying extrude feature
ToothSolid = oDef.Features.ExtrudeFeatures["Cylindr_extrusion"];
ToothSolid.Profile = ToothProf;


Now I'm trying to perform the same with CoilFeture, but Profile property is read-only. I really need to modify the profile and existing CoilFeature. Please help me if you can.

Thanks for your reply!
0 Likes
Message 4 of 5

Anonymous
Not applicable
What release are you on? The ability to edit coil features thru the API was
added in Inventor 2008. It will not be possible to edit the profile in
previous releases.

Sanjay-

wrote in message news:5684673@discussion.autodesk.com...
I'm trying to edit CoilFeature. I have done this operation with
ExtrudeFeature. It works correctly:
// getting existing sketch
PlanarSketch oSketch = oDef.Sketches["tooth_profile"];
/*
* customizing sketch...
*/
// creating profile
Profile ToothProf = oSketch.Profiles._AddForSolid();
// modifying extrude feature
ToothSolid = oDef.Features.ExtrudeFeatures["Cylindr_extrusion"];
ToothSolid.Profile = ToothProf;


Now I'm trying to perform the same with CoilFeture, but Profile property is
read-only. I really need to modify the profile and existing CoilFeature.
Please help me if you can.

Thanks for your reply!
0 Likes
Message 5 of 5

Anonymous
Not applicable
Now I am on Inv11 sp3. I will try to do it in inventor 2008.

Thank you, Sanjay!
0 Likes