Use PowerShape API to Customize the feacture

Use PowerShape API to Customize the feacture

hx
Advocate Advocate
1,427 Views
3 Replies
Message 1 of 4

Use PowerShape API to Customize the feacture

hx
Advocate
Advocate

Our customer want's to customize the PowerShape to do the operation below:

 

  1. Import the model
  2. Using the menu 'Object->Feature-Smart Feature recognition' to find the Hole/pocket'protrusion and boss features.

Smart Feature Recognition.png

 

 3. Each features which recoginize will group and give the group name.

     Take the hole feature for example.

     3.1 grouping the hole by hole type, and same diameter.

     3.2 give the group name 'Plain hole Diameter xxx'

Group the Hole.png

     3.3 getting the hole informations, just like the diameter,depth ot is throught hole. write it out to an text file.

 

4. can use the Api to do the steps 1 to 3. or using the macro to do it?   

 

refer the example model in attachment.

 

 

 

0 Likes
1,428 Views
3 Replies
Replies (3)
Message 2 of 4

luke.edwards.autodesk
Community Manager
Community Manager

Unfortunately what you are asking for is not currently directly supported via the API.  You can import the model:

powerShape.ActiveModel.Import(new Autodesk.FileSystem.File("...path to file..."));

 

However the rest would need to be done via macros.  You can do this via:

 

powerShape.Execute("...macro command to call...");

Luke Edwards
Consulting Services Manager
0 Likes
Message 3 of 4

Anonymous
Not applicable

Luke 

 

Can you collect the hole count information via the API?

 

Thanks

 

Nathan

 

I'm a little rusty and could do with being pointed in the right direction.

0 Likes
Message 4 of 4

luke.edwards.autodesk
Community Manager
Community Manager

I'm not sure if you can to be honest...  Sorry.


Luke Edwards
Consulting Services Manager
0 Likes