cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Subtype & Operation type

Valued Contributor
Valued Contributor

Hey all,

 

I have a simple question,

I got a feature and I want to get its subtype, but I only found in the documentation a method that returns the type.

Is there an API that give me the subtype?

 

Also I would like to know how to get the operation type too (all I got is the name).

 

Thanks.

4 REPLIES

Re: Feature Subtype & Operation type

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

If this is what you mean by feature's subtype:

2016-07-31_15-28-05.jpg

You can try:

(but I didn't tried it)

Dim featureSubtype As Integer
Dim feature As CAM.FBM.Feature
Dim featureSubtypeAttr As CAM.CAMAttribute
'assuming that you assigned a value to "feature":
featureSubtypeAttr = feature.GetAttribute("SUBTYPE")
featureSubtype = featureSubtypeAttr.GetIntegerValue

 

 To get operation's type you can use:

Dim oper As Operation = WorkPart.CAMSetup.CAMOperationCollection.FindObject(operName)
Dim typOper As String = oper.GetType.Name

 

Marek Pawlus, NCmatic

Production: NX 11.0.2
Development: C#, Tcl/Tk, CSE

Re: Feature Subtype & Operation type

Valued Contributor
Valued Contributor

Thank you.

 

But:

 

1) In feature sub type I mean this:

2016-08-01 07_23_26-Machining Knowledge Editor - [knowledge _C__Users_xozh4v_Desktop_Tal's Stuff_].png

 

2) No such method like GetType in Operation class.

Re: Feature Subtype & Operation type

Valued Contributor
Valued Contributor

I'm looking for an API to get the operation type. Like the line in the Operation information.

2016-08-01 10_20_55-Information.png

Re: Feature Subtype & Operation type

Esteemed Contributor
Esteemed Contributor

TomLeon wrote:

Thank you.

 

But:

 

1) In feature sub type I mean this:

2016-08-01 07_23_26-Machining Knowledge Editor - [knowledge _C__Users_xozh4v_Desktop_Tal's Stuff_].png

 


This is not a sub-type, it is a type, since there are no sub-types in the FBM feature classes.

The structure is only used to allow inheritance of attributes.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community